mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 21:10:06 -04: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 */
|
/* 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) {
|
if (write(pair[0], TEST1, strlen(TEST1)+1) < 0) {
|
||||||
tt_fail_perror("write");
|
tt_fail_perror("write");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user