1
0
mirror of https://github.com/danog/amp.git synced 2024-12-11 17:09:40 +01:00

Remove tests incompatible with ext-fiber

This commit is contained in:
Aaron Piotrowski 2020-10-03 21:57:35 -05:00
parent 6ce8cba91c
commit b226030a11
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB
2 changed files with 0 additions and 30 deletions

View File

@ -21,25 +21,6 @@ class DelayedTest extends AsyncTestCase
$this->assertGreaterThanOrEqual($time - 1 /* 1ms grace period */, (\microtime(true) - $start) * 1000);
}
public function testUnreference(): void
{
$time = 100;
$value = "test";
$promise = new Delayed($time, $value);
$promise->unreference();
$this->ignoreLoopWatchers();
$this->expectException(\FiberError::class);
$this->expectExceptionMessage("Scheduler ended");
await($promise);
}
/**
* @depends testUnreference
*/
public function testReference(): void
{
$time = 100;

View File

@ -2,12 +2,9 @@
namespace Amp\Test;
use Amp\Deferred;
use Amp\Delayed;
use Amp\Failure;
use Amp\Loop;
use Amp\PHPUnit\AsyncTestCase;
use Amp\PHPUnit\TestException;
use Amp\Promise;
use Amp\Success;
use function Amp\call;
@ -57,14 +54,6 @@ class WaitTest extends AsyncTestCase
$this->assertSame($value, $result);
}
public function testPromiseWithNoResolutionPathThrowsException(): void
{
$this->expectException(\FiberError::class);
$this->expectExceptionMessage("Scheduler ended");
Promise\wait((new Deferred)->promise());
}
/**
* @depends testWaitOnSuccessfulPromise
*/