aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorMike Perry <mikeperry-git@torproject.org>2023-06-26 20:26:59 +0000
committerMike Perry <mikeperry-git@torproject.org>2023-06-27 19:27:10 +0000
commit04d7f11086b97fa8bda2377ffe694089e18e45e7 (patch)
tree093d0f829aa3a587d9b047acb686c222a868ed6e /src/test
parent7d85298b63dbc7a06e65395011568f4433a98430 (diff)
downloadtor-04d7f11086b97fa8bda2377ffe694089e18e45e7.tar.gz
tor-04d7f11086b97fa8bda2377ffe694089e18e45e7.zip
Bug 40566: Remove unused BDP estimators
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_conflux_pool.c2
-rw-r--r--src/test/test_congestion_control.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/test/test_conflux_pool.c b/src/test/test_conflux_pool.c
index ad78283fe3..fc30677377 100644
--- a/src/test/test_conflux_pool.c
+++ b/src/test/test_conflux_pool.c
@@ -128,7 +128,6 @@ circuit_establish_circuit_conflux_mock(const uint8_t *conflux_nonce,
simulate_single_hop_extend(circ, 0);
simulate_single_hop_extend(circ, 1);
circ->cpath->prev->ccontrol = tor_malloc_zero(sizeof(congestion_control_t));
- circ->cpath->prev->ccontrol->sendme_arrival_timestamps = smartlist_new();
circ->cpath->prev->ccontrol->sendme_pending_timestamps = smartlist_new();
circ->cpath->prev->ccontrol->sendme_inc = 31;
@@ -499,7 +498,6 @@ simulate_circuit_build(circuit_t *client_circ)
relay_side->purpose = CIRCUIT_PURPOSE_OR;
relay_side->n_chan = NULL; // No next hop
relay_side->ccontrol = tor_malloc_zero(sizeof(congestion_control_t));
- relay_side->ccontrol->sendme_arrival_timestamps = smartlist_new();
relay_side->ccontrol->sendme_pending_timestamps = smartlist_new();
relay_side->ccontrol->sendme_inc = 31;
smartlist_add(exit_circs, relay_side);
diff --git a/src/test/test_congestion_control.c b/src/test/test_congestion_control.c
index f494515e99..26095d310a 100644
--- a/src/test/test_congestion_control.c
+++ b/src/test/test_congestion_control.c
@@ -216,7 +216,7 @@ run_vegas_cwnd_test_vec(congestion_control_t *cc,
circ->circuit_blocked_on_p_chan = vec[i].or_conn_blocked_in;
cc->inflight = vec[i].inflight_in;
- congestion_control_vegas_process_sendme(cc, circ, NULL);
+ congestion_control_vegas_process_sendme(cc, circ);
/* If the or conn was blocked, ensure we updated our
* CC state */