1
0
Fork 0
mirror of synced 2024-06-26 10:10:57 +12:00

Fixed node tests

This commit is contained in:
Eldad Fux 2020-12-11 14:17:30 +02:00
parent 618d9cf28f
commit 8488897583
3 changed files with 3 additions and 3 deletions

View file

@ -337,6 +337,8 @@ class FunctionsCustomServerTest extends Scope
* Test for FAILURE
*/
sleep(10);
return array_merge($data, ['executionId' => $executionId]);
}
@ -575,7 +577,7 @@ class FunctionsCustomServerTest extends Scope
$executionId = $execution['body']['$id'] ?? '';
$this->assertEquals(201, $execution['headers']['status-code']);
sleep(15);
sleep(25);
$executions = $this->client->call(Client::METHOD_GET, '/functions/'.$functionId.'/executions', array_merge([
'content-type' => 'application/json',

View file

@ -2,8 +2,6 @@ const sdk = require('node-appwrite');
let client = new sdk.Client();
console.log(process.env);
client
.setEndpoint(process.env.APPWRITE_ENDPOINT) // Your API Endpoint
.setProject(process.env.APPWRITE_PROJECT) // Your project ID