Skip to content

Commit cf04343

Browse files
committed
add a short sleep in TestNetPolInBackgroundSkipAddAfterRemove
1 parent 38cbdd9 commit cf04343

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: npm/pkg/dataplane/dataplane_linux_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ func TestNetPolInBackgroundUpdatePolicy(t *testing.T) {
9494
}
9595

9696
func TestNetPolInBackgroundSkipAddAfterRemove(t *testing.T) {
97+
// Sleep for a bit to let IncNumACLRulesBy be resolved to avoid race condition
98+
time.Sleep(100 * time.Millisecond)
9799
metrics.ReinitializeAll()
98100

99101
calls := getBootupTestCalls()

0 commit comments

Comments
 (0)