summaryrefslogtreecommitdiff
path: root/src/test/test_channel.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2016-11-03 18:34:44 -0400
committerNick Mathewson <nickm@torproject.org>2016-11-03 18:34:44 -0400
commit63c94954b15aa24294b713f6ab8b442bcfd4c444 (patch)
tree44835673d5a98915ebcab06c6e5ca28b3871461d /src/test/test_channel.c
parent0533d1421359c6cc106825f48eef781309071f4f (diff)
downloadtor-63c94954b15aa24294b713f6ab8b442bcfd4c444.tar.gz
tor-63c94954b15aa24294b713f6ab8b442bcfd4c444.zip
Fix BUG message in channel/queue_impossible
Diffstat (limited to 'src/test/test_channel.c')
-rw-r--r--src/test/test_channel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/test_channel.c b/src/test/test_channel.c
index a9e0634d9e..e87f99ef50 100644
--- a/src/test/test_channel.c
+++ b/src/test/test_channel.c
@@ -1405,10 +1405,14 @@ test_channel_queue_impossible(void *arg)
/* Let it drain and check that the bad entry is discarded */
test_chan_accept_cells = 1;
+ tor_capture_bugs_(1);
channel_change_state(ch, CHANNEL_STATE_OPEN);
tt_assert(test_cells_written == old_count);
tt_int_op(chan_cell_queue_len(&(ch->outgoing_queue)), ==, 0);
+ tt_int_op(smartlist_len(tor_get_captured_bug_log_()), ==, 1);
+ tor_end_capture_bugs_();
+
done:
free_fake_channel(ch);