aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_routerlist.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-09-07 19:38:21 -0400
committerNick Mathewson <nickm@torproject.org>2018-09-11 11:43:26 -0400
commit7e3005af30b94fd1925b0be475d72875272b9044 (patch)
treebb8ee6cbd351b3ffaa3d735908e7bfeb9e06f324 /src/test/test_routerlist.c
parentabaca3fc8c6bc54408084e7514468fa2cd7b3edf (diff)
downloadtor-7e3005af30b94fd1925b0be475d72875272b9044.tar.gz
tor-7e3005af30b94fd1925b0be475d72875272b9044.zip
Replace "read consensus from disk" with "map consensus from disk".
Implements 27244, and should save a bunch of RAM on clients.
Diffstat (limited to 'src/test/test_routerlist.c')
-rw-r--r--src/test/test_routerlist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_routerlist.c b/src/test/test_routerlist.c
index 7fe4c15b18..bf76570b3f 100644
--- a/src/test/test_routerlist.c
+++ b/src/test/test_routerlist.c
@@ -659,7 +659,8 @@ test_skew_common(void *arg, time_t now, unsigned long *offset)
MOCK(clock_skew_warning, mock_clock_skew_warning);
/* Caller will call teardown_capture_of_logs() */
setup_capture_of_logs(LOG_WARN);
- retval = networkstatus_set_current_consensus(consensus, "microdesc", 0,
+ retval = networkstatus_set_current_consensus(consensus, strlen(consensus),
+ "microdesc", 0,
NULL);
done: