From 33a61e2599f25bc64460bb04152a98f33c716688 Mon Sep 17 00:00:00 2001 From: Ben Olden-Cooligan Date: Sat, 24 Aug 2024 16:16:52 -0700 Subject: [PATCH] Improve test flakiness --- NAPS2.Lib.Tests/WinForms/DesktopControllerTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NAPS2.Lib.Tests/WinForms/DesktopControllerTests.cs b/NAPS2.Lib.Tests/WinForms/DesktopControllerTests.cs index da873ec2c4..d8e7a69567 100644 --- a/NAPS2.Lib.Tests/WinForms/DesktopControllerTests.cs +++ b/NAPS2.Lib.Tests/WinForms/DesktopControllerTests.cs @@ -287,7 +287,7 @@ public async Task ProcessCoordinatorScanWithDevice() { await _desktopController.Initialize(); Assert.True(_processCoordinator.ScanWithDevice(Process.GetCurrentProcess(), 10000, "abc")); - + await Task.Delay(500); _ = _desktopScanController.Received().ScanWithDevice("abc"); } } \ No newline at end of file