fix string formatting on test errors.

This commit is contained in:
fiatjaf
2022-11-08 08:44:22 -03:00
parent f98f54d3be
commit fe01c9474b
2 changed files with 4 additions and 4 deletions

View File

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