]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix BUG message in channel/queue_impossible
authorNick Mathewson <nickm@torproject.org>
Thu, 3 Nov 2016 22:34:44 +0000 (18:34 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 3 Nov 2016 22:34:44 +0000 (18:34 -0400)
src/test/test_channel.c

index a9e0634d9eacfd462a17e6487eee12732cc73148..e87f99ef50ac6ba7422d25013718784dace9c3e4 100644 (file)
@@ -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);