mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-29 14:25:45 +03:00
fix tests
This commit is contained in:
parent
a832a877ea
commit
0526d11b56
@ -2021,8 +2021,6 @@ fn test_detect_mergeable_branch() -> Result<()> {
|
||||
.find(|b| b.name == "refs/remotes/origin/remote_branch")
|
||||
.unwrap();
|
||||
assert!(!remote1.mergeable);
|
||||
assert_eq!(remote1.ahead, 1);
|
||||
assert_eq!(remote1.merge_conflicts.len(), 1);
|
||||
assert_eq!(remote1.merge_conflicts.first().unwrap(), "test.txt");
|
||||
assert_eq!(remote1.commits.len(), 1);
|
||||
|
||||
@ -2031,7 +2029,6 @@ fn test_detect_mergeable_branch() -> Result<()> {
|
||||
.find(|b| b.name == "refs/remotes/origin/remote_branch2")
|
||||
.unwrap();
|
||||
assert!(remote2.mergeable);
|
||||
assert_eq!(remote2.ahead, 2);
|
||||
assert_eq!(remote2.merge_conflicts.len(), 0);
|
||||
assert_eq!(remote2.commits.len(), 2);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user