Skip to content

Commit befa201

Browse files
committed
Fix a tests for Windows
1 parent 187b1f9 commit befa201

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

crates/zubanls/tests/slow-tests/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ fn test_virtual_environment() {
11091109
tracing::info!("Check adding the code again");
11101110
server.write_file_and_wait(init, "foo = 1");
11111111
let mut result = server.expect_publish_diagnostics_for_file(PATH);
1112-
if cfg!(target_os = "windows") && !result.is_empty() {
1112+
if cfg!(target_os = "windows") && result.len() > 1 {
11131113
// On Windows events may be duplicated, because there is a Create event for writing
11141114
// and then a modification event.
11151115
result = server.expect_publish_diagnostics_for_file(PATH);

scripts/ci-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -eu -o pipefail -x
44
# Simply show the current rust version
55
rustup show
66

7-
RUST_BACKTRACE=1 cargo test --locked
7+
RUST_BACKTRACE=full cargo test --locked
88

99
# On Windows pipefail causes problems with the command below, so deactivate it temporarily
1010
set +o pipefail

0 commit comments

Comments
 (0)