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:
Nick Mathewson 2012-01-24 11:45:00 -05:00
parent f25d9d32b1
commit ab14f7c140

View File

@ -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");