Skip to content

Commit

Permalink
fix ok envelope test.
Browse files Browse the repository at this point in the history
fixes #106
  • Loading branch information
fiatjaf committed Nov 5, 2023
1 parent f8fb9e8 commit 29646d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion envelopes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func TestEoseEnvelopeEncodingAndDecoding(t *testing.T) {
func TestOKEnvelopeEncodingAndDecoding(t *testing.T) {
okEnvelopes := []string{
`["OK","3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefaaaaa",false,"error: could not connect to the database"]`,
`["OK","3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefaaaaa",true]`,
`["OK","3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefaaaaa",true,""]`,
}

for _, raw := range okEnvelopes {
Expand Down
2 changes: 2 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ build-all:
for dir in (find . -maxdepth 1 -type d -name "nip*")
go build "./$dir"
end
go build ./
go build ./nson
go build ./binary
Expand All @@ -11,5 +12,6 @@ test-all:
for dir in (find . -maxdepth 1 -type d -name "nip*")
go test "./$dir"
end
go test ./
go test ./nson
go test ./binary

0 comments on commit 29646d8

Please sign in to comment.