Skip to content

Commit

Permalink
* test/request.c (fail_noserver): Revert use of destroy_and_wait
Browse files Browse the repository at this point in the history
  incorrectly added in 4415225.
  • Loading branch information
notroj committed Oct 23, 2023
1 parent 08bf0e0 commit 4ade9da
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/request.c
Original file line number Diff line number Diff line change
Expand Up @@ -1333,12 +1333,13 @@ static int fail_noserver(const char *hostname, unsigned int port, int code)
{
ne_session *sess = ne_session_create("http", hostname, port);
int ret = any_request(sess, "/foo");
ne_session_destroy(sess);

ONV(ret == NE_OK,
("request to server at %s:%u succeeded?!", hostname, port));
ONV(ret != code, ("request failed with %d not %d", ret, code));

return destroy_and_wait(sess);
return OK;
}

static int fail_lookup(void)
Expand Down

0 comments on commit 4ade9da

Please sign in to comment.