mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-06-20 05:42:10 +02: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) {
|
func TestOKEnvelopeEncodingAndDecoding(t *testing.T) {
|
||||||
okEnvelopes := []string{
|
okEnvelopes := []string{
|
||||||
`["OK","3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefaaaaa",false,"error: could not connect to the database"]`,
|
`["OK","3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefaaaaa",false,"error: could not connect to the database"]`,
|
||||||
`["OK","3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefaaaaa",true]`,
|
`["OK","3bf0c63fcb93463407af97a5e5ee64fa883d107ef9e558472c4eb9aaaefaaaaa",true,""]`,
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, raw := range okEnvelopes {
|
for _, raw := range okEnvelopes {
|
||||||
|
2
justfile
2
justfile
@ -3,6 +3,7 @@ build-all:
|
|||||||
for dir in (find . -maxdepth 1 -type d -name "nip*")
|
for dir in (find . -maxdepth 1 -type d -name "nip*")
|
||||||
go build "./$dir"
|
go build "./$dir"
|
||||||
end
|
end
|
||||||
|
go build ./
|
||||||
go build ./nson
|
go build ./nson
|
||||||
go build ./binary
|
go build ./binary
|
||||||
|
|
||||||
@ -11,5 +12,6 @@ test-all:
|
|||||||
for dir in (find . -maxdepth 1 -type d -name "nip*")
|
for dir in (find . -maxdepth 1 -type d -name "nip*")
|
||||||
go test "./$dir"
|
go test "./$dir"
|
||||||
end
|
end
|
||||||
|
go test ./
|
||||||
go test ./nson
|
go test ./nson
|
||||||
go test ./binary
|
go test ./binary
|
||||||
|
Loading…
x
Reference in New Issue
Block a user