Skip to content

Commit

Permalink
lib-http: test-http-payload: Fixed problem in nested ioloop test.
Browse files Browse the repository at this point in the history
The running ioloop was not always stopped properly at the end of the test.
This caused an assert failure in the running ioloop.
  • Loading branch information
stephanbosch committed Sep 13, 2016
1 parent 19f8621 commit 0873f75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib-http/test-http-payload.c
Expand Up @@ -1159,6 +1159,11 @@ static void test_client_echo_continue(void)
ioloop_nested_first, ioloop_nested_last, ioloop_nested_depth);
}
ioloop_nested_first = ioloop_nested_last = 0;

if (client_files_first >= count) {
io_loop_stop(current_ioloop);
return;
}
}
}

Expand Down

0 comments on commit 0873f75

Please sign in to comment.