fix: phone verification flaky test

This commit is contained in:
loks0n committed 2024-02-25 16:41:37 +00:00
1 parent b3fc8eb510
commit c4657eadaf
1 file changed
+1 -3
@@ -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)
]);
}