Increase sleep for flaky test

This commit is contained in:
Jake Barnby 2024-02-12 15:17:50 +13:00
parent f2efe9ca72
commit bb264bef23
No known key found for this signature in database
GPG key ID: C437A8CC85B96E9C

View file

@ -2227,7 +2227,7 @@ class AccountCustomClientTest extends Scope
/** /**
* @depends testUpdatePhone * @depends testUpdatePhone
*/ */
#[Retry(count: 1)] #[Retry(count: 2)]
public function testPhoneVerification(array $data): array public function testPhoneVerification(array $data): array
{ {
$session = $data['session'] ?? ''; $session = $data['session'] ?? '';
@ -2248,7 +2248,7 @@ class AccountCustomClientTest extends Scope
$this->assertEmpty($response['body']['secret']); $this->assertEmpty($response['body']['secret']);
$this->assertEquals(true, (new DatetimeValidator())->isValid($response['body']['expire'])); $this->assertEquals(true, (new DatetimeValidator())->isValid($response['body']['expire']));
\sleep(5); \sleep(10);
$smsRequest = $this->getLastRequest(); $smsRequest = $this->getLastRequest();