]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
test/dir: add an extra argument to dirserv_read_measured_bandwidths()
authorteor <teor@torproject.org>
Thu, 21 Mar 2019 02:56:28 +0000 (12:56 +1000)
committerteor <teor@torproject.org>
Thu, 21 Mar 2019 02:56:28 +0000 (12:56 +1000)
Part of 29806.

src/test/test_dir.c

index cbb414ed62638c67266d256d121320ec8807de3f..0e44c47f3f7ba7f29bbd8e5ab425f420059007c1 100644 (file)
@@ -2014,7 +2014,7 @@ test_dir_dirserv_read_measured_bandwidths(void *arg)
 
   /* Read the bandwidth file */
   setup_full_capture_of_logs(LOG_DEBUG);
-  tt_int_op(0, OP_EQ, dirserv_read_measured_bandwidths(fname, NULL));
+  tt_int_op(0, OP_EQ, dirserv_read_measured_bandwidths(fname, NULL, NULL));
   expect_log_msg_containing("Ignoring bandwidth file line");
   teardown_capture_of_logs();
 
@@ -2032,7 +2032,7 @@ test_dir_dirserv_read_measured_bandwidths(void *arg)
 
   /* Read the bandwidth file */
   setup_full_capture_of_logs(LOG_DEBUG);
-  tt_int_op(0, OP_EQ, dirserv_read_measured_bandwidths(fname, NULL));
+  tt_int_op(0, OP_EQ, dirserv_read_measured_bandwidths(fname, NULL, NULL));
   expect_log_msg_not_containing("Ignoring bandwidth file line");
   teardown_capture_of_logs();