Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cirq-core/cirq/contrib/routing/greedy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ def create_hanging_routing_instance(circuit, device_graph):


def test_router_hanging():
"""Run a separate process and check if greedy router hits timeout (5s)."""
"""Run a separate process and check if greedy router hits timeout (20s)."""
circuit, device_graph = create_circuit_and_device()
process = Process(target=create_hanging_routing_instance, args=[circuit, device_graph])
process.start()
process.join(timeout=5)
process.join(timeout=20)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update docstring on line 52 above.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. Thanks!

try:
assert not process.is_alive(), "Greedy router timeout"
finally:
Expand Down