Skip to content

Commit 8af3f24

Browse files
U7nkU7nk
authored andcommitted
Add failing test
1 parent b3dbbbc commit 8af3f24

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/GitVersion.Core.Tests/IntegrationTests/RemoteRepositoryScenarios.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
using Microsoft.Extensions.DependencyInjection;
66
using Microsoft.Extensions.Options;
77
using NUnit.Framework;
8-
using Shouldly;
98

109
namespace GitVersion.Core.Tests.IntegrationTests;
1110

@@ -94,8 +93,7 @@ public void GivenARemoteGitRepositoryWhenCheckingOutDetachedHeadUsingExistingImp
9493
fixture.LocalRepositoryFixture.Repository,
9594
fixture.LocalRepositoryFixture.Repository.Head.Tip);
9695

97-
Should.Throw<WarningException>(() => fixture.AssertFullSemver("0.1.0+4", repository: fixture.LocalRepositoryFixture.Repository, onlyTrackedBranches: false),
98-
$"It looks like the branch being examined is a detached Head pointing to commit '{fixture.LocalRepositoryFixture.Repository.Head.Tip.Id.ToString(7)}'. Without a proper branch name GitVersion cannot determine the build version.");
96+
fixture.AssertFullSemver("0.1.0--no-branch-.1+4", repository: fixture.LocalRepositoryFixture.Repository, onlyTrackedBranches: false);
9997
}
10098

10199
[Test]

0 commit comments

Comments
 (0)