Skip to content

Commit 99e29f1

Browse files
abnegateclaude
andcommitted
test(pool): propagate the schema mode across two borrows without counting on setSchemaless() to borrow
Pool::setSchemaless() no longer checks a connection out, so the test now borrows twice after setting the mode and checks both connections are in it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 5b9c30e commit 99e29f1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎tests/unit/Adapter/PoolTest.php‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ static function (callable $callback) use (&$adapters): mixed {
172172
$pool->setSchemaless(true);
173173

174174
$this->assertFalse($pool->supports(Capability::DefinedAttributes));
175+
$this->assertTrue($pool->isSchemaless());
176+
$this->assertFalse($first->supports(Capability::DefinedAttributes));
175177
$this->assertFalse($second->supports(Capability::DefinedAttributes));
176178
}
177179

0 commit comments

Comments
 (0)