diff --git a/npm/pkg/dataplane/dataplane_linux_test.go b/npm/pkg/dataplane/dataplane_linux_test.go index 99dbb0b1f6..9cb22138ad 100644 --- a/npm/pkg/dataplane/dataplane_linux_test.go +++ b/npm/pkg/dataplane/dataplane_linux_test.go @@ -82,7 +82,7 @@ func TestNetPolInBackgroundUpdatePolicy(t *testing.T) { require.NoError(t, err) defer func() { stopCh <- struct{}{} - time.Sleep(1500 * time.Millisecond) + time.Sleep(2000 * time.Millisecond) klog.Info("defer for TestNetPolInBackgroundUpdatePolicy finished") }() @@ -91,12 +91,12 @@ func TestNetPolInBackgroundUpdatePolicy(t *testing.T) { err = dp.AddPolicy(&testPolicyobj) require.NoError(t, err) - time.Sleep(1500 * time.Millisecond) + time.Sleep(2000 * time.Millisecond) err = dp.UpdatePolicy(&updatedTestPolicyobj) require.NoError(t, err) - time.Sleep(1500 * time.Millisecond) + time.Sleep(2000 * time.Millisecond) linuxPromVals{2, 1, 0, 0, 1}.assert(t) }