[kernel] Don't timeout in ChannelCallFinishAfterFailedCall test Prior to this change the test could spuriously fail if it took longer than one second for the task to terminate. Use an infinite timeout instead. Change-Id: Iafe65a57d0d11ff965309aed89198075981526be Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1583058 Commit-Queue: Nick Maniscalco <maniscalco@google.com> Reviewed-by: Corey Tabaka <eieio@google.com> Fuchsia-Auto-Submit: Nick Maniscalco <maniscalco@google.com>
diff --git a/zircon/system/utest/core/channel/channel-internal.cc b/zircon/system/utest/core/channel/channel-internal.cc index 0d964e5..9f88a95 100644 --- a/zircon/system/utest/core/channel/channel-internal.cc +++ b/zircon/system/utest/core/channel/channel-internal.cc
@@ -242,8 +242,9 @@ t1.join(); // The vdso loaded mini process should have entered as zx_process_exit and so wait for it to // finish so that everything is cleaned up for the next iteration attempt. + printf("waiting for process to terminate\n"); zx_signals_t signals; - EXPECT_OK(process.wait_one(ZX_TASK_TERMINATED, zx::deadline_after(zx::sec(1)), &signals)); + EXPECT_OK(process.wait_one(ZX_TASK_TERMINATED, zx::time::infinite(), &signals)); EXPECT_EQ(signals, ZX_TASK_TERMINATED); } }