@@ -82,7 +82,7 @@ var _ = Describe("Graceful Recovery test", Ordered, Label("graceful-recovery"),
82
82
func () error {
83
83
return checkForWorkingTraffic (teaURL , coffeeURL )
84
84
}).
85
- WithTimeout (timeoutConfig .RequestTimeout * 2 ).
85
+ WithTimeout (timeoutConfig .TestForTrafficTimeout ).
86
86
WithPolling (500 * time .Millisecond ).
87
87
Should (Succeed ())
88
88
})
@@ -287,6 +287,7 @@ func checkForFailingTraffic(teaURL, coffeeURL string) error {
287
287
288
288
func expectRequestToSucceed (appURL , address string , responseBodyMessage string ) error {
289
289
status , body , err := framework .Get (appURL , address , timeoutConfig .RequestTimeout )
290
+
290
291
if status != http .StatusOK {
291
292
return errors .New ("http status was not 200" )
292
293
}
@@ -320,7 +321,7 @@ func checkNGFFunctionality(teaURL, coffeeURL, ngfPodName, containerName string,
320
321
func () error {
321
322
return checkForWorkingTraffic (teaURL , coffeeURL )
322
323
}).
323
- WithTimeout (timeoutConfig .RequestTimeout * 2 ).
324
+ WithTimeout (timeoutConfig .TestForTrafficTimeout ).
324
325
WithPolling (500 * time .Millisecond ).
325
326
Should (Succeed ())
326
327
@@ -330,7 +331,7 @@ func checkNGFFunctionality(teaURL, coffeeURL, ngfPodName, containerName string,
330
331
func () error {
331
332
return checkForFailingTraffic (teaURL , coffeeURL )
332
333
}).
333
- WithTimeout (timeoutConfig .RequestTimeout ).
334
+ WithTimeout (timeoutConfig .TestForTrafficTimeout ).
334
335
WithPolling (500 * time .Millisecond ).
335
336
Should (Succeed ())
336
337
@@ -341,7 +342,7 @@ func checkNGFFunctionality(teaURL, coffeeURL, ngfPodName, containerName string,
341
342
func () error {
342
343
return checkForWorkingTraffic (teaURL , coffeeURL )
343
344
}).
344
- WithTimeout (timeoutConfig .RequestTimeout * 2 ).
345
+ WithTimeout (timeoutConfig .TestForTrafficTimeout ).
345
346
WithPolling (500 * time .Millisecond ).
346
347
Should (Succeed ())
347
348
0 commit comments