Skip to content

Commit

Permalink
Diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
rlubke committed Jan 23, 2025
1 parent f8421f2 commit 849e4ce
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ jobs:
- name: Run test
shell: bash
run: |
PYTHONASYNCIODEBUG=1
export GRPC_TRACE=all
export GRPC_VERBOSITY=DEBUG
export PYTHONASYNCIODEBUG=1
sudo tcpdump --immediate-mode -w /tmp/coh.pcap -v -i lo dst port '(1408 or 30000)' &
TCPDUMP_PID=$!
python -m poetry run ./tests/scripts/run-tests.sh \
Expand Down
25 changes: 14 additions & 11 deletions tests/e2e/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,24 @@ def close_callback() -> None:
session.on(SessionLifecycleEvent.RECONNECTED, reconn_callback)
session.on(SessionLifecycleEvent.CLOSED, close_callback)

# await tests.wait_for(conn_event, EVENT_TIMEOUT)
assert session.is_ready()
try:
# await tests.wait_for(conn_event, EVENT_TIMEOUT)
assert session.is_ready()

await _shutdown_proxy()
await _shutdown_proxy()

await tests.wait_for(disconn_event, EVENT_TIMEOUT)
assert session.is_ready()
await tests.wait_for(reconn_event, EVENT_TIMEOUT)
assert session.is_ready()
await tests.wait_for(disconn_event, EVENT_TIMEOUT)
assert session.is_ready()
await tests.wait_for(reconn_event, EVENT_TIMEOUT)
assert session.is_ready()

await session.close()
assert not session.is_ready()
await session.close()
assert not session.is_ready()

await tests.wait_for(close_event, EVENT_TIMEOUT)
assert not session.is_ready()
await tests.wait_for(close_event, EVENT_TIMEOUT)
assert not session.is_ready()
finally:
await session.close()


@pytest.mark.skip(
Expand Down

0 comments on commit 849e4ce

Please sign in to comment.