File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -532,14 +532,16 @@ spec:
532532`
533533 ResourceApplied ("HTTPRoutePolicy" , "http-route-policy-0" , changedHTTPRoutePolicy , 1 )
534534 // use the old vars cannot match any route
535- s .NewAPISIXClient ().
536- GET ("/get" ).
537- WithHost ("httpbin.example" ).
538- WithHeader ("X-Route-Name" , "httpbin" ).
539- WithHeader ("X-HRP-Name" , "http-route-policy-0" ).
540- WithQuery ("hrp_name" , "http-route-policy-0" ).
541- Expect ().
542- Status (http .StatusNotFound )
535+ Eventually (func () int {
536+ return s .NewAPISIXClient ().
537+ GET ("/get" ).
538+ WithHost ("httpbin.example" ).
539+ WithHeader ("X-Route-Name" , "httpbin" ).
540+ WithHeader ("X-HRP-Name" , "http-route-policy-0" ).
541+ WithQuery ("hrp_name" , "http-route-policy-0" ).
542+ Expect ().Raw ().StatusCode
543+ }).WithTimeout (8 * time .Second ).ProbeEvery (time .Second ).Should (Equal (http .StatusNotFound ))
544+
543545 // use the new vars can match the route
544546 s .NewAPISIXClient ().
545547 GET ("/get" ).
You can’t perform that action at this time.
0 commit comments