mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-17 21:32:56 +01:00
fix ok envelope test.
fixes https://github.com/nbd-wtf/go-nostr/pull/106
This commit is contained in:
parent
f8fb9e8c26
commit
29646d8bec
@ -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 {
|
||||
|
2
justfile
2
justfile
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user