File tree 3 files changed +14
-8
lines changed
3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 7
7
- 7.0
8
8
- hhvm
9
9
10
- matrix :
11
- allow_failures :
12
- - php : hhvm
13
- fast_finish : true
14
-
15
10
install : ./travis-init.sh
16
11
17
12
script :
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ public function runShouldReturnWhenNoMoreFds()
176
176
177
177
$ this ->writeToStream ($ input , "foo \n" );
178
178
179
- $ this ->assertRunFasterThan (0.005 );
179
+ $ this ->assertRunFasterThan (0.015 );
180
180
}
181
181
182
182
/** @test */
@@ -194,7 +194,7 @@ public function stopShouldStopRunningLoop()
194
194
$ this ->assertRunFasterThan (0.005 );
195
195
}
196
196
197
- public function testStopShouldPreventRunFromBlocking ()
197
+ public function testStopShouldPreventRunFromBlocking ($ timeLimit = 0.005 )
198
198
{
199
199
$ this ->loop ->addTimer (
200
200
1 ,
@@ -209,7 +209,7 @@ function () {
209
209
}
210
210
);
211
211
212
- $ this ->assertRunFasterThan (0.005 );
212
+ $ this ->assertRunFasterThan ($ timeLimit );
213
213
}
214
214
215
215
public function testIgnoreRemovedCallback ()
Original file line number Diff line number Diff line change @@ -37,6 +37,17 @@ public function testStreamSelectTimeoutEmulation()
37
37
$ this ->assertGreaterThan (0.04 , $ interval );
38
38
}
39
39
40
+ public function testStopShouldPreventRunFromBlocking ($ timeLimit = 0.005 )
41
+ {
42
+ if (defined ('HHVM_VERSION ' )) {
43
+ // HHVM is a bit slow, so give it more time
44
+ parent ::testStopShouldPreventRunFromBlocking (0.5 );
45
+ } else {
46
+ parent ::testStopShouldPreventRunFromBlocking ($ timeLimit );
47
+ }
48
+ }
49
+
50
+
40
51
public function signalProvider ()
41
52
{
42
53
return [
You can’t perform that action at this time.
0 commit comments