From 4ce9e6fd8f7a1f49f8b857839a1ec753700b6a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Tue, 17 Dec 2024 21:00:18 +0100 Subject: [PATCH] Fix --- .../RetryFailedTestsTests.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/RetryFailedTestsTests.cs b/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/RetryFailedTestsTests.cs index a7b78a0a50..e49d603001 100644 --- a/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/RetryFailedTestsTests.cs +++ b/test/IntegrationTests/Microsoft.Testing.Platform.Acceptance.IntegrationTests/RetryFailedTestsTests.cs @@ -221,6 +221,7 @@ public static async Task Main(string[] args) (_,__) => new DummyTestFramework()); builder.AddCrashDumpProvider(); builder.AddTrxReportProvider(); + builder.AddRetryProvider(); using ITestApplication app = await builder.BuildAsync(); return await app.RunAsync(); } @@ -269,7 +270,7 @@ public async Task ExecuteRequestAsync(ExecuteRequestContext context) else { await context.MessageBus.PublishAsync(this, new TestNodeUpdateMessage(context.Request.Session.SessionUid, - new TestNode() { Uid = "1", DisplayName = "TestMethod1", Properties = new(FailedTestNodeStateProperty.CachedInstance) })); + new TestNode() { Uid = "1", DisplayName = "TestMethod1", Properties = new(new FailedTestNodeStateProperty()) })); } if (await TestMethod2(fail, resultDir)) @@ -280,7 +281,7 @@ public async Task ExecuteRequestAsync(ExecuteRequestContext context) else { await context.MessageBus.PublishAsync(this, new TestNodeUpdateMessage(context.Request.Session.SessionUid, - new TestNode() { Uid = "2", DisplayName = "TestMethod2", Properties = new(FailedTestNodeStateProperty.CachedInstance) })); + new TestNode() { Uid = "2", DisplayName = "TestMethod2", Properties = new(new FailedTestNodeStateProperty()) })); } if (await TestMethod3(fail, resultDir)) @@ -291,7 +292,7 @@ public async Task ExecuteRequestAsync(ExecuteRequestContext context) else { await context.MessageBus.PublishAsync(this, new TestNodeUpdateMessage(context.Request.Session.SessionUid, - new TestNode() { Uid = "3", DisplayName = "TestMethod3", Properties = new(FailedTestNodeStateProperty.CachedInstance) })); + new TestNode() { Uid = "3", DisplayName = "TestMethod3", Properties = new(new FailedTestNodeStateProperty()) })); } context.Complete();