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

test dart only

This commit is contained in:
Torsten Dittmann 2021-01-27 17:06:06 +01:00
parent d3fd93eed7
commit 7615c7e036

View file

@ -463,7 +463,7 @@ class FunctionsCustomServerTest extends Scope
* bash tests/resources/functions/package-*.sh * bash tests/resources/functions/package-*.sh
*/ */
$envs = [ $envs = [
[ /*[
'language' => 'PHP', 'language' => 'PHP',
'version' => '7.4', 'version' => '7.4',
'name' => 'php-7.4', 'name' => 'php-7.4',
@ -534,7 +534,7 @@ class FunctionsCustomServerTest extends Scope
'code' => $functions.'/deno.tar.gz', 'code' => $functions.'/deno.tar.gz',
'command' => 'deno run --allow-env index.ts', 'command' => 'deno run --allow-env index.ts',
'timeout' => 15, 'timeout' => 15,
], ],*/
[ [
'language' => 'Dart', 'language' => 'Dart',
'version' => '2.10', 'version' => '2.10',
@ -543,7 +543,7 @@ class FunctionsCustomServerTest extends Scope
'command' => 'dart main.dart', 'command' => 'dart main.dart',
'timeout' => 15, 'timeout' => 15,
], ],
[ /*[
'language' => '.NET', 'language' => '.NET',
'version' => '3.1', 'version' => '3.1',
'name' => 'dotnet-3.1', 'name' => 'dotnet-3.1',
@ -558,7 +558,7 @@ class FunctionsCustomServerTest extends Scope
'code' => $functions.'/dotnet-5.0.tar.gz', 'code' => $functions.'/dotnet-5.0.tar.gz',
'command' => 'dotnet dotnet.dll', 'command' => 'dotnet dotnet.dll',
'timeout' => 15, 'timeout' => 15,
], ],*/
]; ];
sleep(count($envs) * 30); sleep(count($envs) * 30);
@ -642,7 +642,7 @@ class FunctionsCustomServerTest extends Scope
$executionId = $execution['body']['$id'] ?? ''; $executionId = $execution['body']['$id'] ?? '';
$this->assertEquals(201, $execution['headers']['status-code']); $this->assertEquals(201, $execution['headers']['status-code']);
sleep(30); sleep(45);
$executions = $this->client->call(Client::METHOD_GET, '/functions/'.$functionId.'/executions', array_merge([ $executions = $this->client->call(Client::METHOD_GET, '/functions/'.$functionId.'/executions', array_merge([
'content-type' => 'application/json', 'content-type' => 'application/json',