Skip to content

Commit b416f07

Browse files
committed
revert time change after RunPeriodicTasks
1 parent 0e91284 commit b416f07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

npm/pkg/dataplane/dataplane_linux_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func TestNetPolInBackgroundUpdatePolicy(t *testing.T) {
9494
err = dp.UpdatePolicy(&updatedTestPolicyobj)
9595
require.NoError(t, err)
9696

97-
time.Sleep(500 * time.Millisecond)
97+
time.Sleep(100 * time.Millisecond)
9898

9999
linuxPromVals{2, 1, 0, 0, 1}.assert(t)
100100
}
@@ -117,7 +117,7 @@ func TestNetPolInBackgroundSkipAddAfterRemove(t *testing.T) {
117117
require.NoError(t, dp.RemovePolicy(testPolicyobj.PolicyKey))
118118

119119
dp.RunPeriodicTasks()
120-
time.Sleep(500 * time.Millisecond)
120+
time.Sleep(100 * time.Millisecond)
121121

122122
// nothing happens
123123
linuxPromVals{0, 0, 0, 0, 0}.assert(t)

0 commit comments

Comments
 (0)