Skip to content

Commit

Permalink
Disable restart monitor test in Windows
Browse files Browse the repository at this point in the history
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 <derek@mcg.dev>
  • Loading branch information
dmcgowan committed Dec 10, 2021
1 parent 95b83fa commit 552a270
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions integration/client/restart_monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 552a270

Please sign in to comment.