style: wrap long error messages to satisfy golines

This commit is contained in:
LiusCraft
2026-05-11 01:07:31 +08:00
parent 81bbef62b1
commit 3e30e8abc6
+8 -2
View File
@@ -1121,7 +1121,10 @@ func TestStore_SetsCreatedAtWhenNil(t *testing.T) {
t.Errorf("message %d CreatedAt is zero — not set by %s", i, op.name)
}
if history[i].CreatedAt.Before(before) || history[i].CreatedAt.After(after) {
t.Errorf("message %d CreatedAt %v outside expected window [%v, %v]", i, history[i].CreatedAt, before, after)
t.Errorf(
"message %d CreatedAt %v outside expected window [%v, %v]",
i, history[i].CreatedAt, before, after,
)
}
}
})
@@ -1182,7 +1185,10 @@ func TestStore_PreservesExistingCreatedAt(t *testing.T) {
}
for i, want := range op.wantTimes {
if history[i].CreatedAt == nil || !history[i].CreatedAt.Equal(want) {
t.Errorf("message %d CreatedAt = %v, want %v (should preserve caller-provided time)", i, history[i].CreatedAt, want)
t.Errorf(
"message %d CreatedAt = %v, want %v (should preserve caller-provided time)",
i, history[i].CreatedAt, want,
)
}
}
})