chore: fix timezone test case failure on macOS (#14693)

This commit is contained in:
Dane Strandboge 2024-02-06 15:57:09 -06:00 committed by GitHub
parent 2ea7c6bdc3
commit a7f0b06bfe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -759,9 +759,9 @@ func TestTimestampAbbrevWarning(t *testing.T) {
log.SetOutput(&buf) log.SetOutput(&buf)
defer log.SetOutput(backup) 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.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") require.Contains(t, buf.String(), "Your config is using abbreviated timezones and parsing was changed in v1.27.0")
} }