Skip to content

Commit

Permalink
fix tests after update amphp/postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
mmasiukevich committed Dec 4, 2021
1 parent 15370a9 commit 2692bb9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/TableTest.php
Expand Up @@ -23,7 +23,7 @@
use ServiceBus\Storage\Sql\AmpPosgreSQL\AmpPostgreSQLAdapter;
use function Amp\Promise\wait;
use function ServiceBus\Common\uuid;
use function ServiceBus\Storage\Sql\DoctrineDBAL\inMemoryAdapter;
use function ServiceBus\Storage\Sql\AmpPosgreSQL\postgreSqlAdapterFactory;

final class TableTest extends TestCase
{
Expand All @@ -38,7 +38,7 @@ protected function setUp(): void

InMemoryStorage::instance()->reset();

$this->adapter = inMemoryAdapter();
$this->adapter = postgreSqlAdapterFactory(\getenv('TEST_POSTGRES_DSN'));

$promise = $this->adapter->execute(
<<<EOT
Expand Down Expand Up @@ -168,6 +168,8 @@ function (): \Generator

yield $testTable->remove();

self::assertTrue(true);

Loop::stop();
}
);
Expand Down Expand Up @@ -273,6 +275,8 @@ function (): \Generator

yield $testTable->save();

self::assertTrue(true);

Loop::stop();
}
);
Expand Down

0 comments on commit 2692bb9

Please sign in to comment.