Skip to content

Commit a4272d1

Browse files
committed
Disable error entracing in sensitive tests
1 parent b4839c2 commit a4272d1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

crates/ark/tests/kernel.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ use amalthea::wire::kernel_info_request::KernelInfoRequest;
55
use ark::fixtures::DummyArkFrontend;
66
use stdext::assert_match;
77

8+
// Avoids our global calling handler from rlangifying errors.
9+
// This causes some test instability across configs.
10+
811
#[test]
912
fn test_kernel_info() {
1013
let frontend = DummyArkFrontend::lock();
@@ -93,6 +96,18 @@ fn test_execute_request_incomplete() {
9396

9497
let frontend = DummyArkFrontend::lock();
9598

99+
let code = "options(positron.error_entrace = FALSE)";
100+
101+
frontend.send_execute_request(code, ExecuteRequestOptions::default());
102+
frontend.recv_iopub_busy();
103+
104+
let input = frontend.recv_iopub_execute_input();
105+
assert_eq!(input.code, code);
106+
107+
frontend.recv_iopub_idle();
108+
109+
assert_eq!(frontend.recv_shell_execute_reply(), input.execution_count);
110+
96111
let code = "1 +";
97112
frontend.send_execute_request(code, ExecuteRequestOptions::default());
98113
frontend.recv_iopub_busy();

0 commit comments

Comments
 (0)