Skip to content

Commit

Permalink
Min timeout for Verify requests is now 15 (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
SecondeJK authored Jul 2, 2024
1 parent a8b0c05 commit 54827de
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Verify2/Request/BaseVerifyRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

abstract class BaseVerifyRequest implements RequestInterface
{
private const TIMEOUT_MIN = 60;
private const TIMEOUT_MIN = 15;
private const TIMEOUT_MAX = 900;
private const LENGTH_MIN = 4;
private const LENGTH_MAX = 10;
Expand Down
2 changes: 1 addition & 1 deletion test/Verify2/ClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ public function timeoutProvider(): array
return [
[60, true],
[900, true],
[59, false],
[13, false],
[564, true],
[921, false],
];
Expand Down
2 changes: 1 addition & 1 deletion test/Verify2/Request/BaseVerifyRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function testGetSetTimeout(): void
$this->assertEquals(120, $request->getTimeout());

$this->expectException(\OutOfBoundsException::class);
$request->setTimeout(50);
$request->setTimeout(14);
}

public function testGetSetCode(): void
Expand Down

0 comments on commit 54827de

Please sign in to comment.