We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2e1f78 commit 2f7a8f2Copy full SHA for 2f7a8f2
test/Unit/AsyncMilliSleepExceptionHandlerTest.php
@@ -15,10 +15,13 @@ public function testValue()
15
{
16
$handler = new AsyncMilliSleepExceptionHandler(new \ArrayIterator([1000]));
17
18
- $start = microtime(true);
19
- \Amp\Promise\wait($handler());
+ \Amp\Loop::run(static function () use ($handler): \Generator {
+ $start = microtime(true);
20
+
21
+ yield $handler();
22
- self::assertGreaterThan($start + 1, microtime(true));
23
+ self::assertGreaterThan($start + 1, microtime(true));
24
+ });
25
}
26
27
public function testSeries()
0 commit comments