Skip to content

Commit 554569e

Browse files
committed
Fix tests on Windows
1 parent aa2ea77 commit 554569e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/Elastic.Changelog.Tests/Changelogs/BundlePlanTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public async Task Plan_ProfileMode_ResolvesOutputPath()
7676
result.Should().NotBeNull();
7777
result.NeedsNetwork.Should().BeFalse();
7878
result.NeedsGithubToken.Should().BeFalse();
79-
result.OutputPath.Should().EndWith("docs/releases/elasticsearch-9.2.0.yaml");
79+
result.OutputPath.Should().EndWith(FileSystem.Path.Join("docs", "releases", "elasticsearch-9.2.0.yaml"));
8080
}
8181

8282
[Fact]
@@ -107,7 +107,7 @@ public async Task Plan_ProfileMode_GitHubRelease_ReturnsNeedsNetwork()
107107
result.Should().NotBeNull();
108108
result.NeedsNetwork.Should().BeTrue();
109109
result.NeedsGithubToken.Should().BeTrue();
110-
result.OutputPath.Should().EndWith("docs/releases/elasticsearch-v9.2.0.yaml");
110+
result.OutputPath.Should().EndWith(FileSystem.Path.Join("docs", "releases", "elasticsearch-v9.2.0.yaml"));
111111
}
112112

113113
[Fact]
@@ -136,7 +136,7 @@ public async Task Plan_ProfileMode_LifecycleSubstitution_ResolvesCorrectly()
136136
var result = await Service.PlanBundleAsync(Collector, input, hasReleaseVersion: false, TestContext.Current.CancellationToken);
137137

138138
result.Should().NotBeNull();
139-
result.OutputPath.Should().EndWith("docs/releases/dotnet-1.0.0-beta.1-beta.yaml");
139+
result.OutputPath.Should().EndWith(FileSystem.Path.Join("docs", "releases", "dotnet-1.0.0-beta.1-beta.yaml"));
140140
}
141141

142142
[Fact]
@@ -155,7 +155,7 @@ public async Task Plan_NoOutput_FallsBackToConfigOutputDirectory()
155155
var result = await Service.PlanBundleAsync(Collector, input, hasReleaseVersion: false, TestContext.Current.CancellationToken);
156156

157157
result.Should().NotBeNull();
158-
result.OutputPath.Should().EndWith("docs/releases/changelog-bundle.yaml");
158+
result.OutputPath.Should().EndWith(FileSystem.Path.Join("docs", "releases", "changelog-bundle.yaml"));
159159
}
160160

161161
[Fact]

0 commit comments

Comments
 (0)