Commit 54c5db04 authored by juga  's avatar juga
Browse files

tests: CB.build_circuit now returns a tuple

Change tests added in #28897 with the changes introduced in #28736.
parent 3fe64b06
......@@ -30,7 +30,7 @@ def test_connect_to_destination_over_circuit_success(persistent_launch_tor,
helper = rl.exits_not_bad_allowing_port(destination.port)[0]
circuit_path = [relay.fingerprint, helper.fingerprint]
# build a circuit
circuit_id = cb.build_circuit(circuit_path)
circuit_id, _ = cb.build_circuit(circuit_path)
# Perform "usability test"
is_usable, response = connect_to_destination_over_circuit(
destination, circuit_id, session, persistent_launch_tor, 1024)
......@@ -54,7 +54,7 @@ def test_connect_to_destination_over_circuit_fail(persistent_launch_tor,
helper = rl.exits_not_bad_allowing_port(bad_destination.port)[0]
circuit_path = [relay.fingerprint, helper.fingerprint]
# Build a circuit.
circuit_id = cb.build_circuit(circuit_path)
circuit_id, _ = cb.build_circuit(circuit_path)
# Perform "usability test"
is_usable, response = connect_to_destination_over_circuit(
bad_destination, circuit_id, session, persistent_launch_tor, 1024)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment