Skip to content

Commit c2f8d2d

Browse files
fix: update expected stacktraces for CLI
With latest changes in CLI the `file:///` part of the device logs is replaced by `file: `. Apply the change in the tests.
1 parent 6adf6f3 commit c2f8d2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/runtimes/ios/ios_runtime_tests.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def test_384_check_for_native_and_js_callstacks(self):
107107
'sig_handler(int)',
108108
'JS Stack:',
109109
'[native code]',
110-
'at onNavigatingTo(file:///app/main-page.js:34:0']
110+
'at onNavigatingTo(file: app/main-page.js:34:0']
111111
TnsLogs.wait_for_log(log_file=result.log_file, string_list=strings, timeout=150, check_interval=10)
112112

113113
# Verify app is NOT running on device
@@ -149,7 +149,7 @@ def test_386_check_native_crash_will_not_crash_when_discardUncaughtJsExceptions_
149149
log = Tns.run_ios(app_name=APP_NAME, emulator=True)
150150

151151
strings = ['The folder “not-existing-path” doesn’t exist.',
152-
'JS:\ncontentsOfDirectoryAtPathError(file:///app/main-view-model.js:6:0)']
152+
'JS:\ncontentsOfDirectoryAtPathError(file: app/main-view-model.js:6:0)']
153153

154154
test_result = Wait.until(lambda: all(string in File.read(log.log_file) for string in strings), timeout=300,
155155
period=5)

0 commit comments

Comments
 (0)