Skip to content

Commit

Permalink
increased time
Browse files Browse the repository at this point in the history
  • Loading branch information
rayaisaiah committed Mar 7, 2025
1 parent 52b8247 commit 0e91284
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions kubernetes
Submodule kubernetes added at b11972
10 changes: 5 additions & 5 deletions npm/pkg/dataplane/dataplane_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@ func TestNetPolInBackgroundUpdatePolicy(t *testing.T) {
err = dp.AddPolicy(&testPolicyobj)
require.NoError(t, err)

time.Sleep(100 * time.Millisecond)
time.Sleep(500 * time.Millisecond)

err = dp.UpdatePolicy(&updatedTestPolicyobj)
require.NoError(t, err)

time.Sleep(100 * time.Millisecond)
time.Sleep(500 * time.Millisecond)

linuxPromVals{2, 1, 0, 0, 1}.assert(t)
}
Expand All @@ -110,14 +110,14 @@ func TestNetPolInBackgroundSkipAddAfterRemove(t *testing.T) {
require.NoError(t, err)
defer func() {
stopCh <- struct{}{}
time.Sleep(100 * time.Millisecond)
time.Sleep(500 * time.Millisecond)
}()

require.NoError(t, dp.AddPolicy(&testPolicyobj))
require.NoError(t, dp.RemovePolicy(testPolicyobj.PolicyKey))

dp.RunPeriodicTasks()
time.Sleep(100 * time.Millisecond)
time.Sleep(500 * time.Millisecond)

// nothing happens
linuxPromVals{0, 0, 0, 0, 0}.assert(t)
Expand Down Expand Up @@ -175,7 +175,7 @@ func TestNetPolInBackgroundFailureToAddFirstTime(t *testing.T) {
require.NoError(t, err)
defer func() {
stopCh <- struct{}{}
time.Sleep(100 * time.Millisecond)
time.Sleep(500 * time.Millisecond)
}()

require.NoError(t, dp.AddPolicy(&testPolicyobj))
Expand Down

0 comments on commit 0e91284

Please sign in to comment.