commit 8e1e71cc0d024d52f6368cb012e66da58683ff25
parent 74e41155ffc3e295322904b5c85179db538d91f8
Author: Nick Mathewson <nickm@torproject.org>
Date: Tue, 22 Jan 2019 14:31:01 -0500
Merge branch 'bug29122'
Diffstat:
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/changes/bug29122 b/changes/bug29122
@@ -0,0 +1,3 @@
+ o Minor bugfixes (unit tests):
+ - Fix intermittent failures on an adaptive padding unittest. Fixes bug
+ 29122; bugfix on 0.4.0.1-alpha
diff --git a/src/test/test_circuitpadding.c b/src/test/test_circuitpadding.c
@@ -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,