Commit 9201d8c4 authored by Kenton Varda's avatar Kenton Varda

Skip whenWriteDisconnected() tests on Cygwin, where they don't seem to work --…

Skip whenWriteDisconnected() tests on Cygwin, where they don't seem to work -- the promise never resolves.
parent e469c249
......@@ -2133,7 +2133,9 @@ KJ_TEST("Userspace TwoWayPipe whenWriteDisconnected()") {
abortedPromise.wait(ws);
}
#if !_WIN32 // IOCP doesn't support detecting disconnect AFAICT.
#if !_WIN32 // We don't currently support detecting disconnect with IOCP.
#if !__CYGWIN__ // TODO(soon): Figure out why whenWriteDisconnected() doesn't work on Cygwin.
KJ_TEST("OS OneWayPipe whenWriteDisconnected()") {
auto io = setupAsyncIo();
......@@ -2190,7 +2192,9 @@ KJ_TEST("import socket FD that's already broken") {
buffer[3] = '\0';
KJ_EXPECT(buffer == "foo"_kj);
}
#endif
#endif // !__CYGWIN__
#endif // !_WIN32
} // namespace
} // namespace kj
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment