Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
Signed-off-by: PoAn Yang <[email protected]>
  • Loading branch information
FrankYang0529 authored and David Ko committed Jan 2, 2024
1 parent 4ec45f5 commit babd8cd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions integration/core/test_identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,12 @@ def test_validation_fails_with_client(engine_manager_client,
ENGINE_NAME)
get_controller_version_detail(e_client) # Retries until open socket.
with pytest.raises(grpc.RpcError) as e:
e_client.replica_create('tcp://' + get_process_address(replica_different))
e_client.replica_create(
'tcp://' + get_process_address(replica_different))

assert e.value.code() == grpc.StatusCode.FAILED_PRECONDITION
assert f'incorrect volume name {VOLUME_NAME}; check replica address' in e.value.details()
assert f'incorrect volume name {VOLUME_NAME}; check replica address' in \
e.value.details()

# CASE 8:
# Our sync agent client is right, so we can send it instructions, but it
Expand All @@ -121,7 +123,8 @@ def test_validation_fails_with_client(engine_manager_client,
0)

assert e.value.code() == grpc.StatusCode.FAILED_PRECONDITION
assert f'incorrect volume name {VOLUME_NAME}; check replica address' in e.value.details()
assert f'incorrect volume name {VOLUME_NAME}; check replica address' in \
e.value.details()

def test_validation_fails_with_cli(bin, engine_manager_client, # NOQA
process_manager_client):
Expand Down

0 comments on commit babd8cd

Please sign in to comment.