fix ok envelope test.

fixes https://github.com/nbd-wtf/go-nostr/pull/106
This commit is contained in:
fiatjaf 2023-11-05 13:35:40 -03:00
parent f8fb9e8c26
commit 29646d8bec
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1
2 changed files with 3 additions and 1 deletions

View File

@ -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 {

View File

@ -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
@ -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