Skip to content

Commit 45f73d3

Browse files
committed
ios: use a higher timeout in tests
1 parent 1117385 commit 45f73d3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

tests/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ where
8181
op(&format!("http://{}:{}{}", host, port, &uri), port);
8282

8383
// wait for the url to be hit
84-
let timeout = 90;
84+
let timeout = if cfg!(target_os = "ios") { 360 } else { 90 };
8585
match rx.recv_timeout(std::time::Duration::from_secs(timeout)) {
8686
Ok(msg) => assert_eq!(decode(&msg).unwrap(), uri),
8787
Err(_) => panic!("failed to receive uri data"),

tests/test_ios.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ mod tests {
7272
})
7373
.collect::<Vec<String>>()
7474
.join("\n");
75-
fs::write(&swift_src, new_code).expect("failed to modify ContentView.swift");
75+
fs::write(&swift_src, &new_code).expect("failed to modify ContentView.swift");
7676
let revert_code = || fs::write(&swift_src, &old_code).expect("failed to revert code");
77+
println!("Modifying ContentView.swift to:\n{}", &new_code);
7778
let handle_exec_result = |result: std::io::Result<ExitStatus>, err_msg: &str| {
7879
revert_code();
7980
let success = match result {

0 commit comments

Comments
 (0)