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 @@ -173,7 +173,7 @@ public function runShouldReturnWhenNoMoreFds()
173
173
174
174
$ this ->writeToStream ($ input , "foo \n" );
175
175
176
- $ this ->assertRunFasterThan (0.005 );
176
+ $ this ->assertRunFasterThan (0.015 );
177
177
}
178
178
179
179
/** @test */
@@ -191,7 +191,7 @@ public function stopShouldStopRunningLoop()
191
191
$ this ->assertRunFasterThan (0.005 );
192
192
}
193
193
194
- public function testStopShouldPreventRunFromBlocking ()
194
+ public function testStopShouldPreventRunFromBlocking ($ timeLimit = 0.005 )
195
195
{
196
196
$ this ->loop ->addTimer (
197
197
1 ,
@@ -206,7 +206,7 @@ function () {
206
206
}
207
207
);
208
208
209
- $ this ->assertRunFasterThan (0.005 );
209
+ $ this ->assertRunFasterThan ($ timeLimit );
210
210
}
211
211
212
212
public function testIgnoreRemovedCallback ()
Original file line number Diff line number Diff line change @@ -27,4 +27,15 @@ public function testStreamSelectTimeoutEmulation()
27
27
28
28
$ this ->assertGreaterThan (0.04 , $ interval );
29
29
}
30
+
31
+ public function testStopShouldPreventRunFromBlocking ($ timeLimit = 0.005 )
32
+ {
33
+ if (defined ('HHVM_VERSION ' )) {
34
+ // HHVM is a bit slow, so give it more time
35
+ parent ::testStopShouldPreventRunFromBlocking (0.5 );
36
+ } else {
37
+ parent ::testStopShouldPreventRunFromBlocking ($ timeLimit );
38
+ }
39
+ }
40
+
30
41
}
You can’t perform that action at this time.
0 commit comments