From 825e76fd152684dadd833f862ad917f00b71d968 Mon Sep 17 00:00:00 2001 From: Tom French Date: Wed, 20 Mar 2024 11:10:29 +0000 Subject: [PATCH 1/3] chore(ci): fix long debugger test times --- tooling/debugger/tests/debug.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tooling/debugger/tests/debug.rs b/tooling/debugger/tests/debug.rs index 4de1b25f48a..2cb2e1e9aae 100644 --- a/tooling/debugger/tests/debug.rs +++ b/tooling/debugger/tests/debug.rs @@ -12,7 +12,7 @@ mod tests { let nargo_bin = cargo_bin("nargo").into_os_string().into_string().expect("Cannot parse nargo path"); - let timeout_seconds = 120; + let timeout_seconds = 10; let mut dbg_session = spawn_bash(Some(timeout_seconds * 1000)).expect("Could not start bash session"); @@ -51,5 +51,8 @@ mod tests { dbg_session .exp_regex(".*Circuit witness successfully solved.*") .expect("Expected circuit witness to be successfully solved."); + + // Exit the bash session. + dbg_session.send_line("exit").expect("Failed to quit debugger"); } } From e043f662e760fb5ad2d546f1908b5fe8a44fa020 Mon Sep 17 00:00:00 2001 From: Tom French Date: Wed, 20 Mar 2024 11:19:06 +0000 Subject: [PATCH 2/3] chore: bump up timeout --- tooling/debugger/tests/debug.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/debugger/tests/debug.rs b/tooling/debugger/tests/debug.rs index 2cb2e1e9aae..ea40ce25544 100644 --- a/tooling/debugger/tests/debug.rs +++ b/tooling/debugger/tests/debug.rs @@ -12,7 +12,7 @@ mod tests { let nargo_bin = cargo_bin("nargo").into_os_string().into_string().expect("Cannot parse nargo path"); - let timeout_seconds = 10; + let timeout_seconds = 20; let mut dbg_session = spawn_bash(Some(timeout_seconds * 1000)).expect("Could not start bash session"); From 40d649455eaf7f707a718bfdd1af466979770609 Mon Sep 17 00:00:00 2001 From: Tom French <15848336+TomAFrench@users.noreply.github.com> Date: Wed, 20 Mar 2024 11:40:36 +0000 Subject: [PATCH 3/3] Update tooling/debugger/tests/debug.rs --- tooling/debugger/tests/debug.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/debugger/tests/debug.rs b/tooling/debugger/tests/debug.rs index ea40ce25544..b104a2c84ac 100644 --- a/tooling/debugger/tests/debug.rs +++ b/tooling/debugger/tests/debug.rs @@ -53,6 +53,6 @@ mod tests { .expect("Expected circuit witness to be successfully solved."); // Exit the bash session. - dbg_session.send_line("exit").expect("Failed to quit debugger"); + dbg_session.send_line("exit").expect("Failed to quit bash session"); } }