Skip to content

Commit adab6a2

Browse files
committed
Fix: cross-platform fixes for tests
1 parent f0722db commit adab6a2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/webserver/vscode.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,7 +988,9 @@ mod test {
988988
open_client(&mut ws_ide).await;
989989

990990
let file_path = test_dir.join("test.py");
991-
let file_path_str = file_path.to_str().unwrap().to_string();
991+
// Force the path separator to be Window-style for this test, even on
992+
// non-Windows platforms.
993+
let file_path_str = file_path.to_str().unwrap().to_string().replace("/", "\\");
992994

993995
// Do this is a thread, since the request generates a message that
994996
// requires a response in order to complete.

0 commit comments

Comments
 (0)