Merge pull request #7666 from appwrite/fix-phone-verification-flaky

fix: phone verification flaky
This commit is contained in:
Eldad A. Fux 2024-02-25 18:00:33 +01:00 committed by GitHub
commit 73a96ce2df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2247,12 +2247,10 @@ class AccountCustomClientTest extends Scope
$this->assertEmpty($response['body']['secret']);
$this->assertEquals(true, (new DatetimeValidator())->isValid($response['body']['expire']));
\sleep(10);
$smsRequest = $this->getLastRequest();
return \array_merge($data, [
'token' => $smsRequest['data']['secret']
'token' => \substr($smsRequest['data']['message'], 0, 6)
]);
}