From 8b0edb5933a5845a20de2c7a7a03e5164c940047 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 8 Jan 2021 11:03:47 +0545 Subject: [PATCH 1/2] adding dart to test whitelist --- tests/SDKTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SDKTest.php b/tests/SDKTest.php index f31fabc50..474ba4c35 100644 --- a/tests/SDKTest.php +++ b/tests/SDKTest.php @@ -182,7 +182,7 @@ public function testHTTPSuccess() throw new \Exception('Failed to fetch spec from Appwrite server'); } - $whitelist = ['php', 'java', 'node', 'ruby', 'python', 'typescript', 'deno', 'dotnet']; + $whitelist = ['php', 'java', 'node', 'ruby', 'python', 'typescript', 'deno', 'dotnet', 'dart']; foreach ($this->languages as $language => $options) { if(!empty($whitelist) && !in_array($language, $whitelist)) { From 880af52b90a5d30d15b8f9004371621a795c4f9f Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Fri, 8 Jan 2021 12:45:19 +0545 Subject: [PATCH 2/2] run pub get from 2.7 instead of latest --- tests/SDKTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/SDKTest.php b/tests/SDKTest.php index 474ba4c35..53480de94 100644 --- a/tests/SDKTest.php +++ b/tests/SDKTest.php @@ -37,7 +37,7 @@ class SDKTest extends TestCase 'build' => [ 'mkdir -p tests/sdks/dart/tests', 'cp tests/languages/dart/tests.dart tests/sdks/dart/tests/tests.dart', - 'docker run --rm -v $(pwd):/app -w /app/tests/sdks/dart --env PUB_CACHE=vendor google/dart:latest pub get', + 'docker run --rm -v $(pwd):/app -w /app/tests/sdks/dart --env PUB_CACHE=vendor google/dart:2.7 pub get', ], 'envs' => [ // 'dart-2.6' => 'docker run --rm -v $(pwd):/app -w /app/tests/sdks/dart --env PUB_CACHE=vendor google/dart:2.6 pub run tests/tests.dart',