fix tests

This commit is contained in:
Torsten Dittmann
2021-03-24 17:20:06 +01:00
parent 14070b3296
commit 85d13bf801
+3 -4
View File
@@ -22,7 +22,7 @@ trait RealtimeBase
];
return new WebSocketClient('ws://appwrite-traefik/v1/realtime?' . http_build_query($query), [
'headers' => $headers,
'timeout' => 5,
'timeout' => 10,
]);
}
@@ -659,9 +659,8 @@ trait RealtimeBase
$execution = $this->client->call(Client::METHOD_POST, '/functions/'.$functionId.'/executions', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
'x-appwrite-key' => $this->getProject()['apiKey']
]), []);
'x-appwrite-project' => $this->getProject()['$id']
], $this->getHeaders()), []);
$this->assertEquals($execution['headers']['status-code'], 201);
$this->assertNotEmpty($execution['body']['$id']);