From e14e881734ff63237627d7327029ec2591ad8c9e Mon Sep 17 00:00:00 2001 From: Christian Hartmann Date: Sat, 30 Aug 2025 10:21:34 +0200 Subject: [PATCH] fix(tests): Allow a 10 seconds delta for lockedUntil in form tests Signed-off-by: Christian Hartmann --- tests/Integration/Api/ApiV3Test.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/Integration/Api/ApiV3Test.php b/tests/Integration/Api/ApiV3Test.php index 262679cd2..4641d9644 100644 --- a/tests/Integration/Api/ApiV3Test.php +++ b/tests/Integration/Api/ApiV3Test.php @@ -559,6 +559,13 @@ public function testGetFullForm(array $expected): void { unset($data['lastUpdated']); unset($expected['lastUpdated']); + // Allow a 10 seconds diff for lockedUntil between expectation and data + if (isset($data['lockedUntil'])) { + $this->assertEqualsWithDelta($expected['lockedUntil'], $data['lockedUntil'], 10); + } + unset($data['lockedUntil']); + unset($expected['lockedUntil']); + $this->assertEquals(200, $resp->getStatusCode()); $this->assertEquals($expected, $data); }