]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a compilation error in the channel tests.
authorNick Mathewson <nickm@torproject.org>
Thu, 21 Dec 2017 16:10:30 +0000 (11:10 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 21 Dec 2017 16:10:30 +0000 (11:10 -0500)
This would only show up on systems like windows where monotime_t and
monotime_coarse_t are different types.

src/test/test_channel.c

index 425c93f42fd3628df0b9561c8290367ad42a4f3c..bdc9d32f789d740295504ad29d1929d0c66ae42f 100644 (file)
@@ -719,7 +719,7 @@ test_channel_inbound_cell(void *arg)
   tt_assert(!monotime_coarse_is_zero(&chan->timestamp_xfer));
   tt_u64_op(chan->timestamp_active, OP_NE, 0);
   tt_u64_op(chan->timestamp_recv, OP_NE, 0);
-  tt_assert(monotime_is_zero(&chan->next_padding_time));
+  tt_assert(monotime_coarse_is_zero(&chan->next_padding_time));
   tt_u64_op(chan->n_cells_recved, OP_EQ, 1);
   tt_u64_op(chan->n_bytes_recved, OP_EQ, get_cell_network_size(0));