Browse Source

Fix scheduler assertion in circuitmux/destroy_cell_queue unit test

Andrea Shepard 10 years ago
parent
commit
283646fd90
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/test/test_circuitmux.c

+ 3 - 0
src/test/test_circuitmux.c

@@ -8,6 +8,7 @@
 #include "channel.h"
 #include "circuitmux.h"
 #include "relay.h"
+#include "scheduler.h"
 #include "test.h"
 
 /* XXXX duplicated function from test_circuitlist.c */
@@ -36,6 +37,8 @@ test_cmux_destroy_cell_queue(void *arg)
   cell_queue_t *cq = NULL;
   packed_cell_t *pc = NULL;
 
+  scheduler_init();
+
 #ifdef ENABLE_MEMPOOLS
   init_cell_pool();
 #endif /* ENABLE_MEMPOOLS */