chore: fix timezone test case failure on macOS (#14693)
This commit is contained in:
parent
2ea7c6bdc3
commit
a7f0b06bfe
|
|
@ -759,9 +759,9 @@ func TestTimestampAbbrevWarning(t *testing.T) {
|
|||
log.SetOutput(&buf)
|
||||
defer log.SetOutput(backup)
|
||||
|
||||
ts, err := ParseTimestamp("RFC1123", "Mon, 02 Jan 2006 15:04:05 EST", nil)
|
||||
ts, err := ParseTimestamp("RFC1123", "Mon, 02 Jan 2006 15:04:05 MST", nil)
|
||||
require.NoError(t, err)
|
||||
require.EqualValues(t, 1136232245, ts.Unix())
|
||||
require.EqualValues(t, 1136239445, ts.Unix())
|
||||
|
||||
require.Contains(t, buf.String(), "Your config is using abbreviated timezones and parsing was changed in v1.27.0")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue