mirror of https://github.com/coder/coder.git
chore(coderd/util/tz): skip flaky test (#8652)
This commit is contained in:
parent
001670cc13
commit
539fcf9e6b
|
@ -31,6 +31,10 @@ func Test_TimezoneIANA(t *testing.T) {
|
|||
// Not all Linux operating systems are guaranteed to have localtime!
|
||||
t.Skip("localtime doesn't exist!")
|
||||
}
|
||||
if runtime.GOOS == "windows" {
|
||||
// This test can be flaky on some Windows runners :(
|
||||
t.Skip("This test is flaky under Windows.")
|
||||
}
|
||||
oldEnv, found := os.LookupEnv("TZ")
|
||||
if found {
|
||||
require.NoError(t, os.Unsetenv("TZ"))
|
||||
|
|
Loading…
Reference in New Issue