Skip to content

Commit 419437d

Browse files
committed
[tests] ValidateApplicationSamples: use a temporary path for generating the manifest
Other tests also generate and use `postgres.module.bicep` in the tests' bindir, and these can run in parallel causing them to interfere with each other. Issue: #5174
1 parent 02a0bc6 commit 419437d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/Aspire.Hosting.Tests/Schema/SchemaTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ public void ValidateApplicationSamples(string testCaseName, Action<IDistributedA
195195
{
196196
_ = testCaseName;
197197

198-
var builder = TestDistributedApplicationBuilder.Create(["--publisher", "manifest", "--output-path", "not-used.json"]);
198+
string manifestDir = Directory.CreateTempSubdirectory(testCaseName).FullName;
199+
var builder = TestDistributedApplicationBuilder.Create(["--publisher", "manifest", "--output-path", Path.Combine(manifestDir, "not-used.json")]);
199200
builder.Services.AddKeyedSingleton<IDistributedApplicationPublisher, JsonDocumentManifestPublisher>("manifest");
200201
configurator(builder);
201202

0 commit comments

Comments
 (0)