Skip to content
This repository was archived by the owner on Oct 30, 2024. It is now read-only.

Commit 8de55c4

Browse files
committed
Make setStreamTimeout test more forgiving
1 parent e94c459 commit 8de55c4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

test/ConnectionTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,9 @@ function ($message) {
178178
}
179179
);
180180
$timeTaken = time() - $before;
181-
182-
$this->assertEquals(1, $timeTaken);
181+
182+
$this->assertGreaterThan(0, $timeTaken);
183+
$this->assertLessThan(3, $timeTaken);
183184

184185
$meta = stream_get_meta_data($this->c->streamSocket());
185186

0 commit comments

Comments
 (0)