mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-08-31 00:02:20 +02:00
fix string formatting on test errors.
This commit is contained in:
@@ -15,7 +15,7 @@ func TestEventParsingAndVerifying(t *testing.T) {
|
||||
var ev Event
|
||||
err := json.Unmarshal([]byte(raw), &ev)
|
||||
if err != nil {
|
||||
t.Errorf("failed to parse event json: %w", err)
|
||||
t.Errorf("failed to parse event json: %v", err)
|
||||
}
|
||||
|
||||
if ev.GetID() != ev.ID {
|
||||
@@ -28,7 +28,7 @@ func TestEventParsingAndVerifying(t *testing.T) {
|
||||
|
||||
asjson, err := json.Marshal(ev)
|
||||
if err != nil {
|
||||
t.Errorf("failed to re marshal event as json: %w", err)
|
||||
t.Errorf("failed to re marshal event as json: %v", err)
|
||||
}
|
||||
|
||||
if string(asjson) != raw {
|
||||
|
Reference in New Issue
Block a user