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