Skip to content

Commit 4e1abff

Browse files
committed
Update test fixture
1 parent cae8b5e commit 4e1abff

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Recruiter/Concurrency/MongoLockTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ public function testALockCanBeWaitedOnUntilItsDisappearance()
170170

171171
public function testALockShouldNotBeWaitedUponForever()
172172
{
173-
$this->clock = new ProgressiveClock(new \DateTimeImmutable('2014-01-01T00:00:00Z'), \DateInterval::createFromDateString('500 milliseconds'));
173+
$this->clock = new ProgressiveClock(new \DateTimeImmutable('2014-01-01T00:00:00Z'));
174174

175175
$first = new MongoLock($this->lockCollection, 'windows_defrag', 'ws-a-25:42', $this->clock);
176176
$first->acquire(3600);
@@ -181,7 +181,7 @@ public function testALockShouldNotBeWaitedUponForever()
181181
$this->fail('Should fail after 60 seconds');
182182
} catch (LockNotAvailableException $e) {
183183
$this->assertEquals(
184-
'I have been waiting up until 2014-01-01T00:01:00+00:00 for the lock windows_defrag (60 seconds polling every 30 seconds), but it is still not available (now is 2014-01-01T00:01:01+00:00).',
184+
'I have been waiting up until 2014-01-01T00:01:01+00:00 for the lock windows_defrag (60 seconds polling every 30 seconds), but it is still not available (now is 2014-01-01T00:01:04+00:00).',
185185
$e->getMessage(),
186186
);
187187
}

0 commit comments

Comments
 (0)