Skip to content

Commit 1aa9fa0

Browse files
committed
ci: remove flaky stdin test
1 parent f558f89 commit 1aa9fa0

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

rdict-core/src/rdict.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,7 @@ pub fn output_english_plain(result: &ToEnglish) -> Result<String> {
409409
#[cfg(test)]
410410
mod tests {
411411
use super::*;
412-
use assert_cmd::Command;
413412
use mockito::{Matcher, Server};
414-
use predicates::prelude::*;
415413

416414
#[test]
417415
fn test_contains_cjk_with_cjk() {
@@ -433,17 +431,6 @@ mod tests {
433431
assert!(!contains_cjk(""));
434432
}
435433

436-
#[test]
437-
fn test_cmd_stdin_empty() -> Result<(), Box<dyn std::error::Error>> {
438-
let mut cmd = Command::cargo_bin("rdict")?;
439-
cmd.write_stdin("")
440-
.assert()
441-
.failure()
442-
.stderr(predicate::str::contains("No word specified"));
443-
444-
Ok(())
445-
}
446-
447434
#[tokio::test]
448435
async fn test_fetch_word_html_success_with_mock_server() {
449436
let mut server = Server::new_async().await;

0 commit comments

Comments
 (0)