Skip to content

Commit c5beaec

Browse files
committed
tests: Fix range
I *did* test the tests, but then in trying to unify them I messed up the range syntax, so we effectively lost the src != dest case. Just noticed this when going to do a release and glancing at the code... Signed-off-by: Colin Walters <[email protected]>
1 parent 84b588a commit c5beaec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmdext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ mod tests {
6868
#[test]
6969
fn test_take_fdn() -> anyhow::Result<()> {
7070
// Pass srcfd == destfd and srcfd != destfd
71-
for i in 0..1 {
71+
for i in 0..=1 {
7272
let tempd = cap_tempfile::TempDir::new(cap_std::ambient_authority())?;
7373
let tempd_fd = Arc::new(tempd.as_fd().try_clone_to_owned()?);
7474
let n = tempd_fd.as_raw_fd() + i;

0 commit comments

Comments
 (0)