Skip to content

Commit

Permalink
Fix 3 broken tests which require tracked branches to function
Browse files Browse the repository at this point in the history
  • Loading branch information
crazycrank committed Jan 19, 2020
1 parent 179870b commit e03b27b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void WhenDevelopBranchedFromMasterDetachedHeadMinorIsIncreased()
var commit = fixture.Repository.Head.Tip;
fixture.Repository.MakeACommit();
Commands.Checkout(fixture.Repository, commit);
fixture.AssertFullSemver("1.1.0-alpha.1");
fixture.AssertFullSemver("1.1.0-alpha.1", isForTrackedBranchOnly: false);
}

[Test]
Expand Down
6 changes: 3 additions & 3 deletions src/GitVersionCore.Tests/IntegrationTests/MasterScenarios.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using GitTools.Testing;
using GitTools.Testing;
using LibGit2Sharp;
using NUnit.Framework;
using GitVersion.Configuration;
Expand Down Expand Up @@ -93,7 +93,7 @@ public void GivenARepositoryWithCommitsButNoTagsWithDetachedHeadVersionShouldBe0
Commands.Checkout(fixture.Repository, commit);

// When
fixture.AssertFullSemver("0.1.0+2");
fixture.AssertFullSemver("0.1.0+2", isForTrackedBranchOnly: false);
}

[Test]
Expand Down Expand Up @@ -207,4 +207,4 @@ public void AreTagsNotAdheringToTagPrefixIgnored()
fixture.AssertFullSemver(config, "0.1.0+6"); //Fallback version + 6 commits since tag
}
}
}
}

0 comments on commit e03b27b

Please sign in to comment.