summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--testapp.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/testapp.c b/testapp.c
index 8140644..729df6f 100644
--- a/testapp.c
+++ b/testapp.c
@@ -1685,14 +1685,8 @@ static enum test_return test_issue_101(void) {
server_pid = start_server(&port, false, 1000);
for (ii = 0; ii < max; ++ii) {
- fds[ii] = connect_server("127.0.0.1", port, false);
- /* set nonblocking */
- int flags = fcntl(fds[ii], F_GETFL, 0);
- if (flags < 0 || fcntl(fds[ii], F_SETFL, flags | O_NONBLOCK) < 0) {
- perror("Failed to set nonblocking mode");
- ret = TEST_FAIL;
- goto cleanup;
- }
+ fds[ii] = connect_server("127.0.0.1", port, true);
+ assert(fds[ii] > 0);
}
/* Send command on the connection until it blocks */