Remove passing_alternate_backend
After some testing I notice that this test is failing randomly because the `true` program is exiting before mdbook is able to transmit the JSON, and it fails with a broken pipe. This will be replaced with backends_receive_render_context_via_stdin, which does essentially the same thing, but does suffer from the same problem.
This commit is contained in:
parent
15c6f3f318
commit
5bc25e32eb
1 changed files with 0 additions and 15 deletions
|
|
@ -6,13 +6,6 @@ use std::fs;
|
|||
use std::path::Path;
|
||||
use tempfile::{Builder as TempFileBuilder, TempDir};
|
||||
|
||||
#[test]
|
||||
fn passing_alternate_backend() {
|
||||
let (md, _temp) = dummy_book_with_backend("passing", success_cmd(), false);
|
||||
|
||||
md.build().unwrap();
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn failing_alternate_backend() {
|
||||
let (md, _temp) = dummy_book_with_backend("failing", fail_cmd(), false);
|
||||
|
|
@ -143,14 +136,6 @@ fn fail_cmd() -> &'static str {
|
|||
}
|
||||
}
|
||||
|
||||
fn success_cmd() -> &'static str {
|
||||
if cfg!(windows) {
|
||||
r#"cmd.exe /c "exit 0""#
|
||||
} else {
|
||||
"true"
|
||||
}
|
||||
}
|
||||
|
||||
fn rust_exe(temp: &Path, name: &str, src: &str) {
|
||||
let rs = temp.join(name).with_extension("rs");
|
||||
fs::write(&rs, src).unwrap();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue