Switched hardcoded string for const value

This commit is contained in:
Andrew Burian 2016-11-21 10:16:24 -08:00
parent 1d329ad042
commit c92f90003f
1 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ func TestJSONDisableTimestamp(t *testing.T) {
t.Fatal("Unable to format entry: ", err)
}
s := string(b)
if strings.Contains(s, "time") {
if strings.Contains(s, FieldKeyTime) {
t.Error("Did not prevent timestamp", s)
}
}
@ -193,7 +193,7 @@ func TestJSONEnableTimestamp(t *testing.T) {
t.Fatal("Unable to format entry: ", err)
}
s := string(b)
if !strings.Contains(s, "time") {
if !strings.Contains(s, FieldKeyTime) {
t.Error("Timestamp not present", s)
}
}