Skip to content

Commit 72aa4af

Browse files
committed
Fixed bug of smoke_merge_file
1 parent 0736d2c commit 72aa4af

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/repo.rs

+5
Original file line numberDiff line numberDiff line change
@@ -3424,6 +3424,8 @@ mod tests {
34243424

34253425
assert!(index.has_conflicts(), "index should have conflicts");
34263426

3427+
let mut conflict_count = 0;
3428+
34273429
let index_conflicts = index.conflicts().unwrap();
34283430
for conflict in index_conflicts {
34293431
let conflict = conflict.unwrap();
@@ -3498,7 +3500,10 @@ mod tests {
34983500
},
34993501
merge_file_result_content
35003502
);
3503+
3504+
conflict_count += 1;
35013505
}
3506+
assert_eq!(conflict_count, 1, "There should be one conflict!");
35023507
}
35033508

35043509
/// create the following:

0 commit comments

Comments
 (0)