From 552a27081c5df96766f6cd13ab02638ea81e5823 Mon Sep 17 00:00:00 2001 From: Derek McGowan Date: Fri, 10 Dec 2021 11:13:14 -0800 Subject: [PATCH] Disable restart monitor test in Windows Skip this test until this error can be evaluated and the appropriate test fix or environment configuration can be determined. Signed-off-by: Derek McGowan --- integration/client/restart_monitor_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/integration/client/restart_monitor_test.go b/integration/client/restart_monitor_test.go index ef608c454..77c8b5f59 100644 --- a/integration/client/restart_monitor_test.go +++ b/integration/client/restart_monitor_test.go @@ -125,6 +125,13 @@ func newDaemonWithConfig(t *testing.T, configTOML string) (*Client, *daemon, fun // TestRestartMonitor tests restarting containers // with the restart monitor service plugin func TestRestartMonitor(t *testing.T) { + if runtime.GOOS == "windows" { + // This test on Windows encounters the following error in some environments: + // "The process cannot access the file because it is being used by another process. (0x20)" + // Skip this test until this error can be evaluated and the appropriate + // test fix or environment configuration can be determined. + t.Skip("Skipping flaky test on Windows") + } const ( interval = 10 * time.Second epsilon = 1 * time.Second