tests: Increase cancellation delay

This sometimes fails on github actions with ASAN. I am assuming that's
because the ctrl-c happens *before* the process has had a chance to
start.

So we do what we do and increase the delay.
This commit is contained in:
Fabian Homborg 2021-01-11 21:00:33 +01:00
parent 7bf2b9fd43
commit 3fc9c0b38c

View File

@ -1295,7 +1295,7 @@ static void test_parser() {
static void test_1_cancellation(const wchar_t *src) {
auto filler = io_bufferfill_t::create(fd_set_t{});
pthread_t thread = pthread_self();
double delay = 0.25 /* seconds */;
double delay = 0.50 /* seconds */;
iothread_perform([=]() {
/// Wait a while and then SIGINT the main thread.
usleep(delay * 1E6);