fix(ssh): increase injection timeout from 5s to 30s and update related test
- Updated the injection timeout constant from 5 seconds to 30 seconds to allow for longer processing times. - Modified the corresponding test to reflect the new timeout value, ensuring accurate functionality checks.
This commit is contained in:
1 parent
6857f10077
commit
10b45cae9e
1 file changed
+3
-3
@@ -19,7 +19,7 @@ use tauri::{AppHandle, Emitter, Manager};
|
||||
use tokio::sync::mpsc;
|
||||
use tokio::time::{Duration, Sleep, timeout};
|
||||
|
||||
const INJECT_TIMEOUT_SECS: u64 = 5;
|
||||
const INJECT_TIMEOUT_SECS: u64 = 30;
|
||||
const INITIAL_INJECT_DELAY_MS: u64 = 500;
|
||||
const SUPPRESSED_VISIBLE_FALLBACK_MAX_BYTES: usize = 64 * 1024;
|
||||
|
||||
@@ -1107,8 +1107,8 @@ mod tests {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn injection_timeout_is_5s_and_falls_back_to_normal() {
|
||||
assert_eq!(INJECT_TIMEOUT_SECS, 5);
|
||||
fn injection_timeout_is_30s_and_falls_back_to_normal() {
|
||||
assert_eq!(INJECT_TIMEOUT_SECS, 30);
|
||||
|
||||
let mut wait_initial = IoPhase::WaitInitial;
|
||||
assert_eq!(
|
||||
|
||||
Reference in new issue
Block a user