X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=test%2Fchannels-failure.c;h=9829b4501fb4596b0b5022dcdb292e2799b171c4;hp=db8889615aa3eab91fb7a7f892d48b228da51754;hb=cb8aedb0d1da7fc93299d8fd5005b9631364b7ee;hpb=269c5eaed0f3333f014e04835a304bdfa9275e53 diff --git a/test/channels-failure.c b/test/channels-failure.c index db888961..9829b450 100644 --- a/test/channels-failure.c +++ b/test/channels-failure.c @@ -117,14 +117,10 @@ int main() { sleep(1); - // Stop mesh2, then try to send data to it. We should get a notification that the channel has closed after a while. - - assert(!check_sync_flag(&receive_flag)); + // Stop mesh2. We should get a notification that the channel has closed after a while. meshlink_stop(mesh2); - assert(meshlink_channel_send(mesh1, channel, "hello", 5) == 5); - assert(wait_sync_flag(&receive_flag, 70)); assert(receive_len == 0);