Skip to content

Commit

Permalink
Resolve flake8 lint errors on integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drklee3 committed Feb 6, 2024
1 parent 2730283 commit 1494668
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/integration_tests/test_grpc_only.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def wait_for_grpc_accept(port, host="127.0.0.1", timeout=40.0):
raise TimeoutError(
"Waited too long for the port {} on host {} to start accepting "
"connections.".format(port, host)
) from ex
)


def test_grpc_mode(custom_ethermint):
Expand Down Expand Up @@ -118,7 +118,8 @@ def test_grpc_mode(custom_ethermint):

# Requests seem to have an error for a few seconds before actually
# accepting connections:
# connection error: desc = \"transport: Error while dialing: dial tcp 127.0.0.1:26413: connect: connection refused\"
# connection error: desc = \"transport: Error while dialing: dial
# tcp 127.0.0.1:26413: connect: connection refused\"

wait_for_grpc_accept(api_port)

Expand Down
1 change: 1 addition & 0 deletions tests/integration_tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def wait_for_port(port, host="127.0.0.1", timeout=40.0):
"connections.".format(port, host)
) from ex


def w3_wait_for_new_blocks(w3, n, sleep=0.5):
begin_height = w3.eth.block_number
while True:
Expand Down

0 comments on commit 1494668

Please sign in to comment.