Skip to content

Commit a355188

Browse files
committed
test: adapt time protection test for windows
1 parent bf5f34c commit a355188

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cryptography/tests/Signing/SignerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ public function test_time_protection(): void
176176
$this->assertTrue($signer->verify($data, $signature));
177177
$elapsed = microtime(true) - $start;
178178

179-
$this->assertGreaterThanOrEqual(0.3, $elapsed);
179+
$this->assertGreaterThanOrEqual(0.29, $elapsed);
180+
$this->assertLessThanOrEqual(0.31, $elapsed);
180181
}
181182

182183
public function test_time_protection_with_mock_clock(): void

0 commit comments

Comments
 (0)