mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
test: fix use of t.Logf where t.Log would suffice (#16328)
This commit is contained in:
@@ -309,8 +309,8 @@ func TestDeploymentValues_DurationFormatNanoseconds(t *testing.T) {
|
||||
continue
|
||||
}
|
||||
t.Logf("Option %q is a duration but does not have the format_duration annotation.", s.Name)
|
||||
t.Logf("To fix this, add the following to the option declaration:")
|
||||
t.Logf(`Annotations: serpent.Annotations{}.Mark(annotationFormatDurationNS, "true"),`)
|
||||
t.Log("To fix this, add the following to the option declaration:")
|
||||
t.Log(`Annotations: serpent.Annotations{}.Mark(annotationFormatDurationNS, "true"),`)
|
||||
t.FailNow()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user