Skip to content

Commit

Permalink
Do not run/fail gRPC GetInit test when attaching to a running service
Browse files Browse the repository at this point in the history
  • Loading branch information
PlagueCZ committed Jun 28, 2024
1 parent f02febb commit c1fdd50
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/local/test_zzz_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ def test_grpc_init(prepare_ifaces, grpc_client):
# Already initialized
grpc_client.expect_failure().init()

def test_grpc_getinit(prepare_ifaces, grpc_client):
def test_grpc_getinit(prepare_ifaces, grpc_client, request):
if request.config.getoption("--attach"):
pytest.skip("gRPC GetInit not available when attaching to an already running service")
spec = grpc_client.getinit()
assert spec['uuid'] == grpc_client.uuid, \
f"UUID mismatch: {spec['uuid']} (get init) vs. {grpc_client.uuid} (init)"
Expand Down

0 comments on commit c1fdd50

Please sign in to comment.