Skip to content

Commit

Permalink
test(tag): fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
oknozor committed Jan 19, 2021
1 parent 7647397 commit 2a7da28
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/git/repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -522,17 +522,17 @@ mod test {
std::fs::write(&path.join("file"), "changes")?;
repo.add_all()?;
repo.commit("first commit")?;
repo.create_tag("tag1")?;
repo.create_tag("0.1.0")?;

std::fs::write(&path.join("file"), "changes2")?;
repo.add_all()?;
repo.commit("second commit")?;
repo.create_tag("tag2")?;
repo.create_tag("0.2.0")?;

let tag = repo.get_latest_tag();

assert!(tag.is_ok());
assert_eq!(tag.unwrap(), "tag2");
assert_eq!(tag.unwrap(), "0.2.0");
Ok(())
}

Expand Down Expand Up @@ -561,7 +561,7 @@ mod test {
std::fs::write(&path.join("file"), "changes")?;
repo.add_all()?;
repo.commit("first commit")?;
repo.create_tag("tag1")?;
repo.create_tag("1.0.0")?;

let tag = repo.get_latest_tag_oid();

Expand Down

0 comments on commit 2a7da28

Please sign in to comment.