Skip to content

Commit 0e91284

Browse files
committed
increased time
1 parent 52b8247 commit 0e91284

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

kubernetes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit b11972a9c94c8877add6f536aff1c6f45a933303

npm/pkg/dataplane/dataplane_linux_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ func TestNetPolInBackgroundUpdatePolicy(t *testing.T) {
8989
err = dp.AddPolicy(&testPolicyobj)
9090
require.NoError(t, err)
9191

92-
time.Sleep(100 * time.Millisecond)
92+
time.Sleep(500 * time.Millisecond)
9393

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

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

9999
linuxPromVals{2, 1, 0, 0, 1}.assert(t)
100100
}
@@ -110,14 +110,14 @@ func TestNetPolInBackgroundSkipAddAfterRemove(t *testing.T) {
110110
require.NoError(t, err)
111111
defer func() {
112112
stopCh <- struct{}{}
113-
time.Sleep(100 * time.Millisecond)
113+
time.Sleep(500 * time.Millisecond)
114114
}()
115115

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

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

122122
// nothing happens
123123
linuxPromVals{0, 0, 0, 0, 0}.assert(t)
@@ -175,7 +175,7 @@ func TestNetPolInBackgroundFailureToAddFirstTime(t *testing.T) {
175175
require.NoError(t, err)
176176
defer func() {
177177
stopCh <- struct{}{}
178-
time.Sleep(100 * time.Millisecond)
178+
time.Sleep(500 * time.Millisecond)
179179
}()
180180

181181
require.NoError(t, dp.AddPolicy(&testPolicyobj))

0 commit comments

Comments
 (0)