]> git.meshlink.io Git - meshlink/blobdiff - test/channels-failure.c
Inform UTCP when a node is offline, so it will start connection timeouts.
[meshlink] / test / channels-failure.c
index db8889615aa3eab91fb7a7f892d48b228da51754..9829b4501fb4596b0b5022dcdb292e2799b171c4 100644 (file)
@@ -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);