Skip to content

Commit f19d800

Browse files
committed
Remove usage of flaky from run_android_tests.py
1 parent ef548a4 commit f19d800

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/emulator/run_android_tests.py

+3-7
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import unittest
1717

1818
import nose
19-
from flaky import flaky
2019

2120
from core.base_class.BaseClass import BaseClass
2221
from core.device.device import Device
@@ -26,7 +25,6 @@
2625
from core.osutils.file import File
2726
from core.osutils.folder import Folder
2827
from core.osutils.os_type import OSType
29-
from core.osutils.process import Process
3028
from core.settings.settings import ANDROID_RUNTIME_PATH, ANDROID_KEYSTORE_PATH, ANDROID_KEYSTORE_PASS, \
3129
ANDROID_KEYSTORE_ALIAS, ANDROID_KEYSTORE_ALIAS_PASS, EMULATOR_ID, EMULATOR_NAME, CURRENT_OS
3230
from core.settings.strings import cannot_resolve_device, list_devices
@@ -63,7 +61,6 @@ def tearDownClass(cls):
6361
BaseClass.tearDownClass()
6462
Emulator.stop() # We need this because of test_400_tns_run_android_respect_adb_errors
6563

66-
@flaky(max_runs=2)
6764
def test_001_tns_run_android_js_css_xml_manifest(self):
6865
"""Make valid changes in JS,CSS and XML"""
6966

@@ -73,7 +70,7 @@ def test_001_tns_run_android_js_css_xml_manifest(self):
7370
strings = ['Project successfully built',
7471
'Successfully installed on device with identifier', EMULATOR_ID,
7572
'Successfully synced application']
76-
Tns.wait_for_log(log_file=log, string_list=strings, timeout=150, check_interval=10)
73+
Tns.wait_for_log(log_file=log, string_list=strings, timeout=180, check_interval=10)
7774

7875
# Verify app looks correct inside emulator
7976
Device.screen_match(device_name=EMULATOR_NAME, device_id=EMULATOR_ID,
@@ -129,7 +126,6 @@ def test_001_tns_run_android_js_css_xml_manifest(self):
129126
Device.screen_match(device_name=EMULATOR_NAME, device_id=EMULATOR_ID,
130127
expected_image='livesync-hello-world_home')
131128

132-
@flaky(max_runs=2)
133129
def test_100_tns_run_android_release(self):
134130
"""Make valid changes in JS,CSS and HTML"""
135131

@@ -146,7 +142,7 @@ def test_100_tns_run_android_release(self):
146142

147143
strings = ['Project successfully prepared', 'Project successfully built',
148144
'Successfully installed on device with identifier', EMULATOR_ID]
149-
Tns.wait_for_log(log_file=log, string_list=strings, timeout=120, check_interval=10)
145+
Tns.wait_for_log(log_file=log, string_list=strings, timeout=150, check_interval=10)
150146

151147
# Verify app looks correct inside emulator
152148
Device.screen_match(device_name=EMULATOR_NAME,
@@ -169,7 +165,7 @@ def test_100_tns_run_android_release(self):
169165
'--release': ''}, wait=False, assert_success=False)
170166

171167
strings = ['Project successfully prepared']
172-
Tns.wait_for_log(log_file=log, string_list=strings)
168+
Tns.wait_for_log(log_file=log, string_list=strings, timeout=60)
173169

174170
# Verify app looks is update after changes in js, css and xml
175171
Device.screen_match(device_name=EMULATOR_NAME, device_id=EMULATOR_ID,

0 commit comments

Comments
 (0)