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;
&d2->id, /* Null for local peer? */
10, /* App port */
&stream_open_cb,
- &peer1);
+ &peer1,
+ GNUNET_STREAM_OPTION_END);
GNUNET_assert (NULL != peer1.socket);
}
{
int ret;
- char *argv2[] = { "test-stream-local",
+ char *argv2[] = { "test-stream-2peers-halfclose",
"-L", "DEBUG",
"-c", "test_stream_local.conf",
NULL};
ret =
GNUNET_PROGRAM_run ((sizeof (argv2) / sizeof (char *)) - 1, argv2,
- "test-stream-local", "nohelp", options, &run, NULL);
+ "test-stream-2peers-halfclose", "nohelp", options, &run, NULL);
if (GNUNET_OK != ret)
{