@@ -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