mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 09:02:47 +08:00
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:
parent
7bf2b9fd43
commit
3fc9c0b38c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user