Skip to content

Commit ad9b0ca

Browse files
committed
fixup! fixup! fixup! fixup! fix: Delete inactive sessions in one query
1 parent e4d4c3c commit ad9b0ca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/unit/Db/SessionMapperTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,16 @@ public function testDeleteInactiveWithoutSteps1010() {
9494

9595
self::assertCount(1010, $this->sessionMapper->findAll(1));
9696

97+
$a = $this->sessionMapper->findAll(1);
98+
var_dump($a);
9799
sleep(1);
98100

99101
\OC::$server->getDatabaseConnection()->beginTransaction();
100102
$this->sessionMapper->deleteInactiveWithoutSteps(1);
101103
\OC::$server->getDatabaseConnection()->commit();
104+
105+
$a = $this->sessionMapper->findAll(1);
106+
var_dump($a);
102107

103108
self::assertCount(0, $this->sessionMapper->findAll(1));
104109
}

0 commit comments

Comments
 (0)