From 16a8cb4e305d2d5b611210a96ebcd5c613abe1d6 Mon Sep 17 00:00:00 2001 From: Dimitar Topuzov Date: Thu, 12 Jul 2018 05:40:37 -0700 Subject: [PATCH] chore: update tests for nativescript-cli/pull/3744 Address changes required by: https://github.com/NativeScript/nativescript-cli/pull/3744 --- tests/build/android/build_android_tests.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/build/android/build_android_tests.py b/tests/build/android/build_android_tests.py index 82d59837..31902746 100644 --- a/tests/build/android/build_android_tests.py +++ b/tests/build/android/build_android_tests.py @@ -127,8 +127,9 @@ def test_001_build_android(self): output = Tns.build_android(attributes={"--path": self.app_name, "--clean": ""}) after_build = datetime.datetime.now() build_time = (after_build - before_build).total_seconds() - assert "Gradle build..." in output, "Gradle build not called." - assert output.count("Gradle build...") is 2, "Only one gradle build is triggered." + assert "Gradle clean..." in output, "Gradle clean is not called." + assert "Gradle build..." in output, "Gradle build is not called." + assert output.count("Gradle build...") is 1, "More than 1 gradle build is triggered." assert build_time > 10, "Clean build takes less then 15 sec." assert build_time < 90, "Clean build takes more than 90 sec."