Commit 6243133a authored by George Kadianakis's avatar George Kadianakis Committed by Nick Mathewson
Browse files

Fix intermittent failures of test_circuitpadding_wronghop().

We fix it by disabling the scheduling of actual padding.
Fixes #29122.
parent d1af4d65
o Minor bugfixes (unit tests):
- Fix intermittent failures on an adaptive padding unittest. Fixes bug
29122; bugfix on 0.4.0.1-alpha
......@@ -1239,6 +1239,10 @@ test_circuitpadding_wronghop(void *arg)
MOCK(circuitmux_attach_circuit, circuitmux_attach_circuit_mock);
/* Mock this function so that our cell counting tests don't get confused by
* padding that gets sent by scheduled timers. */
MOCK(circpad_machine_schedule_padding,circpad_machine_schedule_padding_mock);
client_side = (circuit_t *)origin_circuit_new();
dummy_channel.cmux = circuitmux_alloc();
relay_side = (circuit_t *)new_fake_orcirc(&dummy_channel,
......
Supports Markdown
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