Skip to content

Commit 0533ad7

Browse files
more descriptive error
1 parent 48ba2f1 commit 0533ad7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gix/tests/gix/status.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,14 +313,16 @@ mod index_worktree {
313313
#[test]
314314
fn submodule_in_symlinked_dir() -> crate::Result {
315315
let repo = submodule_repo("symlinked-git-dir")?;
316-
let mut status = repo
316+
let status = repo
317317
.status(gix::progress::Discard)?
318318
.index_worktree_options_mut(|opts| {
319319
opts.sorting =
320320
Some(gix::status::plumbing::index_as_worktree_with_renames::Sorting::ByPathCaseSensitive);
321321
})
322322
.into_index_worktree_iter(None)?;
323-
assert!(status.all(|r| r.is_ok()), "status should not have any errors");
323+
for change in status {
324+
change?;
325+
}
324326
Ok(())
325327
}
326328

0 commit comments

Comments
 (0)