Skip to content

Commit

Permalink
Increase delays and add more information to failure message for debug…
Browse files Browse the repository at this point in the history
…ging
  • Loading branch information
Enkidu93 committed Dec 11, 2023
1 parent 0d02024 commit 28d3cc2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tests/Serval.E2ETests/ServalApiTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -146,10 +146,10 @@ public async Task NmtQueueMultiple()
await _helperClient.AddTextCorpusToEngine(engineId, new string[] { "3JN.txt" }, "es", "en", true);
await _helperClient.StartBuildAsync(engineId);
//Ensure that tasks are enqueued roughly in order
await Task.Delay(500);
await Task.Delay(1_000);
}
//Wait for at least some tasks to be queued
await Task.Delay(20_000);
await Task.Delay(40_000);
string builds = "";
for (int i = 0; i < NUM_ENGINES; i++)
{
Expand All @@ -164,7 +164,10 @@ public async Task NmtQueueMultiple()
TranslationBuild newestEngineCurrentBuild = await _helperClient.translationEnginesClient.GetCurrentBuildAsync(
engineIds[NUM_ENGINES - 1]
);
Assert.NotNull(newestEngineCurrentBuild.QueueDepth, JsonSerializer.Serialize(newestEngineCurrentBuild));
Assert.NotNull(
newestEngineCurrentBuild.QueueDepth,
JsonSerializer.Serialize(newestEngineCurrentBuild) + "|||" + builds
);
Assert.Multiple(async () =>
{
Assert.That(newestEngineCurrentBuild.QueueDepth, Is.GreaterThan(0), message: builds);
Expand Down

0 comments on commit 28d3cc2

Please sign in to comment.