Increase sleep time so execution can complete
This commit is contained in:
parent
622b1da457
commit
35bb80741f
|
@ -180,13 +180,13 @@ class FunctionsCustomClientTest extends Scope
|
||||||
|
|
||||||
$this->assertEquals(201, $execution['headers']['status-code']);
|
$this->assertEquals(201, $execution['headers']['status-code']);
|
||||||
|
|
||||||
sleep(10);
|
sleep(20);
|
||||||
$executions = $this->client->call(Client::METHOD_GET, '/functions/'.$functionId.'/executions', [
|
$executions = $this->client->call(Client::METHOD_GET, '/functions/'.$functionId.'/executions', [
|
||||||
'content-type' => 'application/json',
|
'content-type' => 'application/json',
|
||||||
'x-appwrite-project' => $projectId,
|
'x-appwrite-project' => $projectId,
|
||||||
'x-appwrite-key' => $apikey,
|
'x-appwrite-key' => $apikey,
|
||||||
]);
|
]);
|
||||||
var_dump($executions);
|
var_dump($executions['body']['executions']);
|
||||||
|
|
||||||
$this->assertEquals(200, $executions['headers']['status-code']);
|
$this->assertEquals(200, $executions['headers']['status-code']);
|
||||||
$this->assertStringContainsString('foobar', $executions['body']['executions'][0]['stdout']);
|
$this->assertStringContainsString('foobar', $executions['body']['executions'][0]['stdout']);
|
||||||
|
|
Loading…
Reference in a new issue