Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
test-poll: make spurious wakeup detection slightly less strict
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Jun 2, 2012
1 parent 619686e commit 4a07b8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test-poll.c
Expand Up @@ -550,10 +550,10 @@ static void start_poll_test() {
r = uv_run(uv_default_loop());
ASSERT(r == 0);

/* Assert that at most one percent of the writable wakeups was spurious. */
/* Assert that at most five percent of the writable wakeups was spurious. */
ASSERT(spurious_writable_wakeups == 0 ||
(valid_writable_wakeups + spurious_writable_wakeups) /
spurious_writable_wakeups > 100);
spurious_writable_wakeups > 20);

ASSERT(closed_connections == NUM_CLIENTS * 2);
}
Expand Down

0 comments on commit 4a07b8b

Please sign in to comment.