diff --git a/src/runtime2/tests/internet.rs b/src/runtime2/tests/internet.rs index abb4204bf432e7c207110f3f37c9c2d75b41a429..cdaf8c287383d4fe369d3bd8c7e7de4f6fa5843f 100644 --- a/src/runtime2/tests/internet.rs +++ b/src/runtime2/tests/internet.rs @@ -28,6 +28,7 @@ fn test_stdlib_file() { auto cmd = get(cmds); if (let inet::Cmd::Send(data) = cmd) { to_send = data; + keep_going = false; } else if (let inet::Cmd::Receive = cmd) { put(tx, to_send); } else if (let inet::Cmd::Finish = cmd) { @@ -46,7 +47,9 @@ fn test_stdlib_file() { sync { put(conn.tx, inet::Cmd::Receive); auto val = get(conn.rx); - while (val[0] != 1 || val[1] != 3 || val[2] != 3 || val[3] != 7) {} + while (val[0] != 1 || val[1] != 3 || val[2] != 3 || val[3] != 7) { + print(\"this is going very wrong\"); + } put(conn.tx, inet::Cmd::Finish); } sync put(conn.tx, inet::Cmd::Shutdown);