Skip to content

Commit f7fab16

Browse files
author
Miroslava Ivanova
committed
add timeout for tests starter kits
1 parent 9218d46 commit f7fab16

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/templates/starter_kit_templates_tests.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,8 @@ def test_200_run_android_bundle(self, demo):
232232
StarterKitsTests.apply_changes(self=self, demo=demo, platform=Platform.ANDROID, device_id=EMULATOR_ID)
233233

234234
# Verify application looks correct
235-
Tns.wait_for_log(log_file=log, string_list=Helpers.wp_sync, not_existing_string_list=Helpers.wp_errors)
235+
Tns.wait_for_log(log_file=log, string_list=Helpers.wp_sync, not_existing_string_list=Helpers.wp_errors,
236+
check_interval=5, timeout=120)
236237
Helpers.android_screen_match(image=demo + '_sync')
237238

238239
# Revert changes
@@ -250,15 +251,16 @@ def test_200_run_ios_bundle(self, demo):
250251
log = Tns.run_ios(attributes={'--path': demo, '--emulator': '', '--bundle': ''}, wait=False,
251252
assert_success=False)
252253
Tns.wait_for_log(log_file=log, string_list=Helpers.wp_run, not_existing_string_list=Helpers.wp_errors,
253-
timeout=240)
254+
timeout=240, check_interval=5)
254255
Helpers.ios_screen_match(sim_id=self.SIMULATOR_ID, image=demo + '_home', tolerance=1.0)
255256
Helpers.wait_webpack_watcher()
256257

257258
# Apply changes
258259
StarterKitsTests.apply_changes(self=self, demo=demo, platform=Platform.IOS, device_id=self.SIMULATOR_ID)
259260

260261
# Verify application looks correct
261-
Tns.wait_for_log(log_file=log, string_list=Helpers.wp_sync, not_existing_string_list=Helpers.wp_errors)
262+
Tns.wait_for_log(log_file=log, string_list=Helpers.wp_sync, not_existing_string_list=Helpers.wp_errors,
263+
check_interval=5, timeout=120)
262264
Helpers.ios_screen_match(sim_id=self.SIMULATOR_ID, image=demo + '_sync')
263265

264266
# Revert changes

0 commit comments

Comments
 (0)