-fix time assertion introduce in last patch
[oweals/gnunet.git] / src / util / test_mq_client.c
index 1c1bcee864a54e3d09e93eceb9f9a220a92e348e..88113ffd01afd1b7534ae4a8b7be73aba4c8ea48 100644 (file)
@@ -102,6 +102,12 @@ send_cb (void *cls)
   notify = GNUNET_YES;
 }
 
+static void
+send_trap_cb (void *cls)
+{
+  GNUNET_abort ();
+}
+
 
 static void
 test_mq (struct GNUNET_CLIENT_Connection *client)
@@ -115,11 +121,15 @@ test_mq (struct GNUNET_CLIENT_Connection *client)
   mqm = GNUNET_MQ_msg_header (MY_TYPE);
   GNUNET_MQ_send (mq, mqm);
 
+  mqm = GNUNET_MQ_msg_header (MY_TYPE);
+  GNUNET_MQ_notify_sent (mqm, send_trap_cb, NULL);
+  GNUNET_MQ_send (mq, mqm);
+  GNUNET_MQ_send_cancel (mqm);
+
   mqm = GNUNET_MQ_msg_header (MY_TYPE);
   GNUNET_MQ_notify_sent (mqm, send_cb, NULL);
   GNUNET_MQ_send (mq, mqm);
 
-  /* FIXME: add a message that will be canceled */
 }