Skip to content

Commit 4664355

Browse files
authored
Merge pull request swiftlang#183 from dgrove-oss/SR-2856
SR-2856: adapt dispatch_timer_set_time for CI
2 parents ba7802e + c614ee3 commit 4664355

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/dispatch_timer_set_time.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ test_timer(void)
5151
struct timeval end_time;
5252
gettimeofday(&end_time, NULL);
5353
// Make sure we actually managed to adjust the interval
54-
// duration. Seven one second ticks would blow past
54+
// duration. Fifteen one second ticks would blow past
5555
// this.
56-
test_long_less_than("total duration", end_time.tv_sec - start_time.tv_sec, 3);
56+
test_long_less_than("total duration", end_time.tv_sec - start_time.tv_sec, 10);
5757
test_stop();
5858

5959
dispatch_release(s);
6060
});
6161

6262
dispatch_source_set_event_handler(s, ^{
6363
fprintf(stderr, "%d\n", ++i);
64-
if (i >= 7) {
64+
if (i >= 15) {
6565
dispatch_source_cancel(s);
6666
} else if (i == 1) {
6767
dispatch_source_set_timer(s, dispatch_time(DISPATCH_TIME_NOW, 0), NSEC_PER_SEC / 10, 0);

0 commit comments

Comments
 (0)