Skip to content

Commit a1a794c

Browse files
authored
chore: update tests for nativescript-cli/pull/3744 (#153)
Address changes required by: NativeScript/nativescript-cli#3744
1 parent c2dc9ed commit a1a794c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/build/android/build_android_tests.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,9 @@ def test_001_build_android(self):
127127
output = Tns.build_android(attributes={"--path": self.app_name, "--clean": ""})
128128
after_build = datetime.datetime.now()
129129
build_time = (after_build - before_build).total_seconds()
130-
assert "Gradle build..." in output, "Gradle build not called."
131-
assert output.count("Gradle build...") is 2, "Only one gradle build is triggered."
130+
assert "Gradle clean..." in output, "Gradle clean is not called."
131+
assert "Gradle build..." in output, "Gradle build is not called."
132+
assert output.count("Gradle build...") is 1, "More than 1 gradle build is triggered."
132133
assert build_time > 10, "Clean build takes less then 15 sec."
133134
assert build_time < 90, "Clean build takes more than 90 sec."
134135

0 commit comments

Comments
 (0)