mirror of
https://github.com/danog/amp.git
synced 2024-11-26 20:15:00 +01:00
fix
This commit is contained in:
parent
ee6e57f2e5
commit
f9d9f70435
@ -55,7 +55,7 @@ class TimeoutCancellationTest extends TestCase
|
|||||||
public function testWatcherNoUnreference(): void
|
public function testWatcherNoUnreference(): void
|
||||||
{
|
{
|
||||||
$this->expectException(CancelledException::class);
|
$this->expectException(CancelledException::class);
|
||||||
$cancellation = new TimeoutCancellation(0.001, unreference: false);
|
$cancellation = new TimeoutCancellation(0.001, reference: true);
|
||||||
$deferred = new DeferredFuture;
|
$deferred = new DeferredFuture;
|
||||||
$deferred->getFuture()->await($cancellation);
|
$deferred->getFuture()->await($cancellation);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user