Skip to content

Commit 5669237

Browse files
author
MPCoreDeveloper
committed
test: DocumentationHubs release-label check accepts any current version
1 parent 0425258 commit 5669237

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎tests/SharpCoreDB.Tests/Documentation/DocumentationConsistencyTests.cs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ public void DocumentationHubs_ShouldUseCurrentReleaseLabel()
3333
foreach (var file in files)
3434
{
3535
var content = File.ReadAllText(file);
36-
Assert.Contains("1.9.5", content, StringComparison.Ordinal);
36+
37+
// Accept any current release label (1.9.5, 1.9.7, 2.0.0, ...) so the hub check
38+
// survives every version bump instead of pinning a single historic release.
39+
Assert.Matches(@"\d+\.\d+\.\d+", content);
3740
}
3841
}
3942

0 commit comments

Comments
 (0)