From 29646d8bec7cc27bbc1d4defec01d9ca9edd39a4 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Sun, 5 Nov 2023 13:35:40 -0300 Subject: [PATCH] fix ok envelope test. fixes https://github.com/nbd-wtf/go-nostr/pull/106 --- envelopes_test.go | 2 +- justfile | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/envelopes_test.go b/envelopes_test.go index 8812411..b033fc6 100644 --- a/envelopes_test.go +++ b/envelopes_test.go @@ -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 { diff --git a/justfile b/justfile index 7f0c5ee..bc3aadd 100644 --- a/justfile +++ b/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