mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Reduce the timeout in the main/fork test.
There was no reason for it to be so long, except for the lack of a usleep
This commit is contained in:
parent
f25d9d32b1
commit
ab14f7c140
@ -857,7 +857,10 @@ test_fork(void)
|
||||
}
|
||||
|
||||
/* wait for the child to read the data */
|
||||
sleep(1);
|
||||
{
|
||||
const struct timeval tv = { 0, 100000 };
|
||||
evutil_usleep(&tv);
|
||||
}
|
||||
|
||||
if (write(pair[0], TEST1, strlen(TEST1)+1) < 0) {
|
||||
tt_fail_perror("write");
|
||||
|
Loading…
x
Reference in New Issue
Block a user