Skip to content

Commit 5a4889d

Browse files
authored
Merge pull request #2891 from nextcloud/fix/integration-test-locking
fix(tests): Allow a 10 seconds delta for lockedUntil in form tests
2 parents 9dceb7d + e14e881 commit 5a4889d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

tests/Integration/Api/ApiV3Test.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,13 @@ public function testGetFullForm(array $expected): void {
559559
unset($data['lastUpdated']);
560560
unset($expected['lastUpdated']);
561561

562+
// Allow a 10 seconds diff for lockedUntil between expectation and data
563+
if (isset($data['lockedUntil'])) {
564+
$this->assertEqualsWithDelta($expected['lockedUntil'], $data['lockedUntil'], 10);
565+
}
566+
unset($data['lockedUntil']);
567+
unset($expected['lockedUntil']);
568+
562569
$this->assertEquals(200, $resp->getStatusCode());
563570
$this->assertEquals($expected, $data);
564571
}

0 commit comments

Comments
 (0)