Skip to content

Commit

Permalink
Skip flaky test in TestSetupDirectoryWatcher (GoogleCloudPlatform#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyuanliang committed Feb 20, 2023
1 parent d8694fa commit 13d1be0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/metrics/collector/pod_ip_metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,12 @@ func TestSetupDirectoryWatcher(t *testing.T) {
t.Errorf("duplicateIpCount. want: 0, got %d", mc.duplicateIPCount)
}

if false {
// Skip flaky test below: https://github.com/GoogleCloudPlatform/netd/issues/171
// Using an `if false` to avoid unnecessary lint errors (unreachable code).
return
}

// Remove and recreate the file. Verify metrics
fakeClock.Sleep(6 * time.Second)
mustDeleteFile(t, dir1, "10.0.0.2")
Expand Down

0 comments on commit 13d1be0

Please sign in to comment.