Skip to content

Commit

Permalink
Fixed bug of smoke_merge_file
Browse files Browse the repository at this point in the history
  • Loading branch information
kentkrantz committed Nov 27, 2020
1 parent 0736d2c commit 72aa4af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/repo.rs
Expand Up @@ -3424,6 +3424,8 @@ mod tests {

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

let mut conflict_count = 0;

let index_conflicts = index.conflicts().unwrap();
for conflict in index_conflicts {
let conflict = conflict.unwrap();
Expand Down Expand Up @@ -3498,7 +3500,10 @@ mod tests {
},
merge_file_result_content
);

conflict_count += 1;
}
assert_eq!(conflict_count, 1, "There should be one conflict!");
}

/// create the following:
Expand Down

0 comments on commit 72aa4af

Please sign in to comment.