From 539fcf9e6bb47bb2bdf91d1187501e539f9e6ff1 Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Fri, 21 Jul 2023 17:31:52 +0100 Subject: [PATCH] chore(coderd/util/tz): skip flaky test (#8652) --- coderd/util/tz/tz_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/coderd/util/tz/tz_test.go b/coderd/util/tz/tz_test.go index cc7d9b69b4..f700468370 100644 --- a/coderd/util/tz/tz_test.go +++ b/coderd/util/tz/tz_test.go @@ -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"))