1
0
Fork 0
mirror of synced 2024-06-03 11:24:48 +12:00

fix: phone verification flaky test

This commit is contained in:
loks0n 2024-02-25 16:41:37 +00:00
parent b3fc8eb510
commit c4657eadaf

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)
]);
}