From 0de6f7c3c81540822172c201e450f193e12fbc0d Mon Sep 17 00:00:00 2001 From: oysand Date: Mon, 27 Jan 2025 10:22:33 +0100 Subject: [PATCH] Add time delay to failing test --- .../api.test/Controllers/MissionSchedulingControllerTests.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/api.test/Controllers/MissionSchedulingControllerTests.cs b/backend/api.test/Controllers/MissionSchedulingControllerTests.cs index 572c37d2..109e2d90 100644 --- a/backend/api.test/Controllers/MissionSchedulingControllerTests.cs +++ b/backend/api.test/Controllers/MissionSchedulingControllerTests.cs @@ -5,6 +5,7 @@ using System.Net.Http; using System.Net.Http.Json; using System.Text.Json; +using System.Threading; using System.Threading.Tasks; using Api.Controllers.Models; using Api.Database.Models; @@ -260,6 +261,7 @@ await missionRunThreeResponse.Content.ReadFromJsonAsync( SerializerOptions ); + Thread.Sleep(1000); // Act string nextMissionUrl = $"missions/definitions/{activeMissionRun.MissionId}/next-run"; var nextMissionResponse = await Client.GetAsync(nextMissionUrl);