fix tests in a bunch of places.

This commit is contained in:
fiatjaf
2025-05-17 10:43:30 -03:00
parent df5f42aa5e
commit 81fd999a8d
5 changed files with 20 additions and 12 deletions

View File

@@ -4,6 +4,7 @@ import (
"context"
"testing"
"fiatjaf.com/nostr"
"github.com/stretchr/testify/assert"
)
@@ -50,7 +51,7 @@ func TestQuery(t *testing.T) {
assert.Error(t, err, "expected error for input: %s", test.input)
} else {
assert.NoError(t, err, "did not expect error for input: %s", test.input)
assert.Equal(t, test.expectedKey, pp.PublicKey, "for input: %s", test.input)
assert.Equal(t, nostr.MustPubKeyFromHex(test.expectedKey), pp.PublicKey, "for input: %s", test.input)
}
}
}