Skip to content

Commit 19a827f

Browse files
committed
Test that CI successfully fails
I think a good pattern is to keep an open (draft) pull request that *should* fail CI, and verify that it actually does. It's surprisingly easily to e.g. have CI not actually test the code. In this case we have our "reverse dependency testing" which patches the crate to use the local code, and that could easily not work.
1 parent 4c039d4 commit 19a827f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/imageproxy.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,9 @@ impl ImageProxy {
380380
if fd.is_some() {
381381
return Err(anyhow!("Unexpected fd in finish_pipe reply"));
382382
}
383+
if true {
384+
anyhow::bail!("synthetic CI failure");
385+
}
383386
Ok(r)
384387
}
385388

0 commit comments

Comments
 (0)