Skip to content

Commit 12d99ee

Browse files
black-deskwxiwnd
authored andcommitted
tests: fix tests when PINYIN_COMP_MODE is defined
1 parent e33ebd9 commit 12d99ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/integration_tests.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ impl<'a> TestCase<'a> {
1616
let mut cmd = Command::cargo_bin("bash-pinyin-completion-rs")
1717
.unwrap_or_else(|_| panic!("Failed to create command for test"));
1818

19+
cmd.env_remove("PINYIN_COMP_MODE");
20+
1921
for (key, value) in self.envs.unwrap_or(&HashMap::new()) {
2022
cmd.env(key, value);
2123
}

0 commit comments

Comments
 (0)