Skip to content

Commit

Permalink
improvements allowing to rerun unit tests even after previous failures
Browse files Browse the repository at this point in the history
  • Loading branch information
deminy committed Dec 23, 2023
1 parent 1dd0142 commit 7f624a5
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions tests/unit/Database/PDOPoolTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,7 @@ public function testPostgres(): void
$pool = new PDOPool($config, 10);

$pdo = $pool->get();
$pdo->exec(
<<<'EOF'
create table test(id int);
EOF
);
$pdo->exec('CREATE TABLE IF NOT EXISTS test(id INT);');
$pool->put($pdo);

$waitGroup = new WaitGroup();
Expand Down Expand Up @@ -133,11 +129,8 @@ public function testOracle(): void
$pool = new PDOPool($config, 10);

$pdo = $pool->get();
$pdo->exec(
<<<'EOF'
create table test(id INTEGER)
EOF
);
$pdo->exec('DROP TABLE test PURGE');
$pdo->exec('CREATE TABLE test(id INTEGER)');
$pool->put($pdo);

$waitGroup = new WaitGroup();
Expand Down Expand Up @@ -174,11 +167,7 @@ public function testSqlite(): void
$pool = new PDOPool($config, 10);

$pdo = $pool->get();
$pdo->exec(
<<<'EOF'
create table test(id int);
EOF
);
$pdo->exec('CREATE TABLE IF NOT EXISTS test(id INT);');
$pool->put($pdo);

$waitGroup = new WaitGroup();
Expand Down

0 comments on commit 7f624a5

Please sign in to comment.