remvod verbose debugging in stream api; fixed warning in stream_big test case
[oweals/gnunet.git] / src / stream / test_stream_2peers_halfclose.c
index 227fbd31338bf6f520b1f6283c02b894eea1cfe3..7997c20e34b2829690df40d3143fdcb3ae5834dd 100644 (file)
@@ -338,6 +338,8 @@ shutdown_completion (void *cls,
     case PEER1_WRITE:
       GNUNET_assert (0);
     case PEER1_WRITE_SHUTDOWN:
+      GNUNET_assert (cls == &peer1);
+      GNUNET_assert (SHUT_WR == operation);
       peer1.test_ok = GNUNET_YES;
       /* Peer2 should read with error */
       peer2.bytes_read = 0;
@@ -706,7 +708,8 @@ peergroup_ready (void *cls, const char *emsg)
                                      &d2->id,         /* Null for local peer? */
                                      10,           /* App port */
                                      &stream_open_cb,
-                                     &peer1);
+                                     &peer1,
+                                    GNUNET_STREAM_OPTION_END);
   GNUNET_assert (NULL != peer1.socket);
 }