diff --git a/testsuite/tests/singlecluster/grpc/conftest.py b/testsuite/tests/singlecluster/grpc/conftest.py index b488471b0..7c89d6728 100644 --- a/testsuite/tests/singlecluster/grpc/conftest.py +++ b/testsuite/tests/singlecluster/grpc/conftest.py @@ -26,6 +26,7 @@ def route(request, gateway, blame, hostname, backend, module_label): route.add_backend(backend) request.addfinalizer(route.delete) route.commit() + route.wait_for_ready() return route diff --git a/testsuite/tests/singlecluster/grpc/test_grpcroute_rule_targeting.py b/testsuite/tests/singlecluster/grpc/test_grpcroute_rule_targeting.py index 52d0675d0..e4a360625 100644 --- a/testsuite/tests/singlecluster/grpc/test_grpcroute_rule_targeting.py +++ b/testsuite/tests/singlecluster/grpc/test_grpcroute_rule_targeting.py @@ -27,6 +27,7 @@ def route(request, gateway, blame, hostname, backend, module_label): route.add_rule(backend, GRPCRouteMatch(method=GRPCMethodMatch(type="Exact", method="DummyUnary"))) # rule-2 request.addfinalizer(route.delete) route.commit() + route.wait_for_ready() return route diff --git a/testsuite/tests/singlecluster/identical_hostnames/conftest.py b/testsuite/tests/singlecluster/identical_hostnames/conftest.py index ebdf836d5..a831d81f9 100644 --- a/testsuite/tests/singlecluster/identical_hostnames/conftest.py +++ b/testsuite/tests/singlecluster/identical_hostnames/conftest.py @@ -22,4 +22,5 @@ def route2(request, gateway, blame, hostname, backend, module_label) -> GatewayR route.add_backend(backend, "/anything/route2") request.addfinalizer(route.delete) route.commit() + route.wait_for_ready() return route diff --git a/testsuite/tests/singlecluster/ui/console_plugin/topology/conftest.py b/testsuite/tests/singlecluster/ui/console_plugin/topology/conftest.py index 430f886d0..3ca442c52 100644 --- a/testsuite/tests/singlecluster/ui/console_plugin/topology/conftest.py +++ b/testsuite/tests/singlecluster/ui/console_plugin/topology/conftest.py @@ -27,6 +27,7 @@ def grpc_route(request, gateway, cluster, blame, module_label): grpc_route = GRPCRoute.create_instance(cluster, blame("grpc"), gateway, {"app": module_label}) request.addfinalizer(grpc_route.delete) grpc_route.commit() + grpc_route.wait_for_ready() return grpc_route