1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00

Increase sleep time so execution can complete

This commit is contained in:
kodumbeats 2021-03-12 06:22:18 -05:00
parent 622b1da457
commit 35bb80741f

View file

@ -180,13 +180,13 @@ class FunctionsCustomClientTest extends Scope
$this->assertEquals(201, $execution['headers']['status-code']);
sleep(10);
sleep(20);
$executions = $this->client->call(Client::METHOD_GET, '/functions/'.$functionId.'/executions', [
'content-type' => 'application/json',
'x-appwrite-project' => $projectId,
'x-appwrite-key' => $apikey,
]);
var_dump($executions);
var_dump($executions['body']['executions']);
$this->assertEquals(200, $executions['headers']['status-code']);
$this->assertStringContainsString('foobar', $executions['body']['executions'][0]['stdout']);