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 authored and yiningou committed Mar 6, 2023
1 parent efd637c commit cb05c7d
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 true {
// Skip flaky test below: https://github.com/GoogleCloudPlatform/netd/issues/171
// Using an `if true` 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 cb05c7d

Please sign in to comment.