Skip to content

Commit efb9962

Browse files
committed
refactor: test_400_tns_run_ios_should_not_crash_when_uninstall_app
1 parent e2f1207 commit efb9962

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/device/run_ios_device_tests.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,11 @@ def test_400_tns_run_ios_should_not_crash_when_uninstall_app(self):
288288

289289
# Uninstall app while `tns run` is running
290290
Device.uninstall_app(app_prefix='org.nativescript.', platform=Platform.IOS)
291-
sleep(5)
291+
sleep(10)
292292

293293
# Change XML and wait until app is synced
294-
ReplaceHelper.replace(self.app_name, ReplaceHelper.CHANGE_XML, sleep=3)
294+
Tns.wait_for_log(log_file=log, string_list=[], timeout=30) # Just to cleanup log file
295+
ReplaceHelper.replace(self.app_name, ReplaceHelper.CHANGE_XML, sleep=10)
295296
strings = ['Successfully installed', 'Successfully synced application']
296297
Tns.wait_for_log(log_file=log, string_list=strings, timeout=180, check_interval=10)
297298
assert Device.wait_for_text(device_id=self.DEVICE_ID, text="TEST"), "XML changes not synced on device!"

0 commit comments

Comments
 (0)