Skip to content

Commit f9bd97f

Browse files
committed
Fix test on Windows
1 parent ceead15 commit f9bd97f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

crates/ark/src/dap/dap_state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,12 +1151,12 @@ mod tests {
11511151
let uri = UrlId::from_file_path(sent).unwrap();
11521152

11531153
map.insert(uri.clone(), BreakpointEntry {
1154-
source_path: String::from(sent),
1154+
verbatim_path: String::from(sent),
11551155
hash: blake3::hash(b""),
11561156
breakpoints: vec![],
11571157
});
11581158

1159-
assert_eq!(map.get(&uri).unwrap().source_path, sent);
1159+
assert_eq!(map.get(&uri).unwrap().verbatim_path, sent);
11601160

11611161
// The key uppercased the drive letter.
11621162
assert!(uri.as_url().as_str().contains("/C:/"));

crates/ark/tests/integration/kernel_shutdown.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#[cfg(unix)]
22
use amalthea::fixtures::dummy_frontend::ExecuteRequestOptions;
3+
#[cfg(unix)]
34
use amalthea::wire::jupyter_message::Status;
5+
#[cfg(unix)]
46
use ark_test::DummyArkFrontend;
57

68
/// Install a SIGINT handler for shutdown tests. This overrides the test runner
@@ -55,6 +57,7 @@ fn test_shutdown_request_with_restart() {
5557
DummyArkFrontend::wait_for_cleanup();
5658
}
5759

60+
#[cfg(unix)]
5861
static SHUTDOWN_TESTS_ENABLED: bool = false;
5962

6063
// Can shut down Ark when running a nested debug console

0 commit comments

Comments
 (0)