Skip to content

Commit db89e07

Browse files
committed
Remove redundant assert
1 parent 4834c6f commit db89e07

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

test/Integration/AbstractIntegrationTestCase.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -57,20 +57,6 @@ protected function assertPgAdvisoryLockExistsInConnection(
5757
);
5858
}
5959

60-
protected function assertPgAdvisoryLockExistsInTransaction(
61-
PDO $dbConnection,
62-
PostgresLockId $postgresLockId
63-
): void {
64-
$row = $this->findPostgresAdvisoryLockInConnection($dbConnection, $postgresLockId);
65-
66-
$lockIdString = $postgresLockId->humanReadableValue();
67-
68-
$this->assertTrue(
69-
$row !== null,
70-
"Lock id `$lockIdString` does not exists"
71-
);
72-
}
73-
7460
protected function assertPgAdvisoryLockMissingInConnection(
7561
PDO $dbConnection,
7662
PostgresLockId $postgresLockId

test/Integration/Locker/PostgresAdvisoryLockerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ public function it_can_acquire_lock_within_transaction(): void
274274
$this->assertTrue($isLockAcquired);
275275
$this->assertPgAdvisoryLocksCount(1);
276276
$this->assertPgAdvisoryLockExistsInConnection($dbConnection, $postgresLockId);
277-
$this->assertPgAdvisoryLockExistsInTransaction($dbConnection, $postgresLockId);
278277
}
279278

280279
/** @test */

0 commit comments

Comments
 (0)