Commit 687f988d authored by Oliver Kuckertz's avatar Oliver Kuckertz

Ensure that test server cannot get stuck at accept

parent d006b845
......@@ -499,6 +499,7 @@ TEST(AsyncUnixTest, UrgentObserver) {
KJ_SYSCALL(recv(clientFd, &c, 1, 0));
EXPECT_EQ('q', c);
});
KJ_DEFER({ shutdown(serverFd, SHUT_RDWR); serverFd = nullptr; });
KJ_SYSCALL(tmpFd = socket(AF_INET, SOCK_STREAM, 0));
kj::AutoCloseFd clientFd(tmpFd);
......
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