From 5f61dda4ef709b438891e13a28e692948e9fec45 Mon Sep 17 00:00:00 2001 From: "Ignaz \"Ian\" Kraft" Date: Thu, 4 Jun 2026 06:08:14 +0200 Subject: [PATCH] make TestAdminLogsWindow more reliable (#43710) --- .../Tests/Administration/Logs/LogWindowTest.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Content.IntegrationTests/Tests/Administration/Logs/LogWindowTest.cs b/Content.IntegrationTests/Tests/Administration/Logs/LogWindowTest.cs index 80236c7d90f..7447f25ec12 100644 --- a/Content.IntegrationTests/Tests/Administration/Logs/LogWindowTest.cs +++ b/Content.IntegrationTests/Tests/Administration/Logs/LogWindowTest.cs @@ -40,9 +40,9 @@ public sealed class LogWindowTest : InteractionTest // Search for the log we added earlier. await Client.WaitPost(() => search.Text = guid.ToString()); await ClickControl(refresh); - await RunTicks(5); + await RunTicks(10); var searchResult = cont.Children.Where(x => x.Visible && x is AdminLogLabel).Cast().ToArray(); - Assert.That(searchResult.Length, Is.EqualTo(1)); + Assert.That(searchResult, Has.Length.EqualTo(1)); Assert.That(searchResult[0].Log.Message, Contains.Substring($" test log 1: {guid}")); // Add a new log @@ -52,9 +52,9 @@ public sealed class LogWindowTest : InteractionTest // Update the search and refresh await Client.WaitPost(() => search.Text = guid.ToString()); await ClickControl(refresh); - await RunTicks(5); + await RunTicks(10); searchResult = cont.Children.Where(x => x.Visible && x is AdminLogLabel).Cast().ToArray(); - Assert.That(searchResult.Length, Is.EqualTo(1)); + Assert.That(searchResult, Has.Length.EqualTo(1)); Assert.That(searchResult[0].Log.Message, Contains.Substring($" test log 2: {guid}")); } }