mirror of https://github.com/sirupsen/logrus.git
Switched hardcoded string for const value
This commit is contained in:
parent
1d329ad042
commit
c92f90003f
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue