Browse code

extend timeout for SSCS tests running in parallel

deads2k authored on 2016/05/18 05:16:14
Showing 1 changed files
... ...
@@ -85,7 +85,7 @@ func TestBasicControllerFlow(t *testing.T) {
85 85
 	t.Log("waiting to reach syncHandler")
86 86
 	select {
87 87
 	case <-received:
88
-	case <-time.After(time.Duration(10 * time.Second)):
88
+	case <-time.After(time.Duration(30 * time.Second)):
89 89
 		t.Fatalf("failed to call into syncService")
90 90
 	}
91 91
 
... ...
@@ -175,7 +175,7 @@ func TestAlreadyExistingSecretControllerFlow(t *testing.T) {
175 175
 	t.Log("waiting to reach syncHandler")
176 176
 	select {
177 177
 	case <-received:
178
-	case <-time.After(time.Duration(10 * time.Second)):
178
+	case <-time.After(time.Duration(30 * time.Second)):
179 179
 		t.Fatalf("failed to call into syncService")
180 180
 	}
181 181
 
... ...
@@ -252,7 +252,7 @@ func TestAlreadyExistingSecretForDifferentUIDControllerFlow(t *testing.T) {
252 252
 	t.Log("waiting to reach syncHandler")
253 253
 	select {
254 254
 	case <-received:
255
-	case <-time.After(time.Duration(10 * time.Second)):
255
+	case <-time.After(time.Duration(30 * time.Second)):
256 256
 		t.Fatalf("failed to call into syncService")
257 257
 	}
258 258
 
... ...
@@ -322,7 +322,7 @@ func TestSecretCreationErrorControllerFlow(t *testing.T) {
322 322
 	t.Log("waiting to reach syncHandler")
323 323
 	select {
324 324
 	case <-received:
325
-	case <-time.After(time.Duration(10 * time.Second)):
325
+	case <-time.After(time.Duration(30 * time.Second)):
326 326
 		t.Fatalf("failed to call into syncService")
327 327
 	}
328 328
 
... ...
@@ -388,7 +388,7 @@ func TestSkipGenerationControllerFlow(t *testing.T) {
388 388
 	t.Log("waiting to reach syncHandler")
389 389
 	select {
390 390
 	case <-received:
391
-	case <-time.After(time.Duration(10 * time.Second)):
391
+	case <-time.After(time.Duration(30 * time.Second)):
392 392
 		t.Fatalf("failed to call into syncService")
393 393
 	}
394 394
 
... ...
@@ -406,7 +406,7 @@ func TestSkipGenerationControllerFlow(t *testing.T) {
406 406
 	t.Log("waiting to reach syncHandler")
407 407
 	select {
408 408
 	case <-received:
409
-	case <-time.After(time.Duration(10 * time.Second)):
409
+	case <-time.After(time.Duration(30 * time.Second)):
410 410
 		t.Fatalf("failed to call into syncService")
411 411
 	}
412 412