From 8b3589a48903f1366e5e62f8f41f08bc7d46d51a Mon Sep 17 00:00:00 2001 From: benbierens Date: Fri, 21 Jul 2023 09:00:07 +0200 Subject: [PATCH] Adds one post-test log download --- ContinuousTests/ContinuousLogDownloader.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ContinuousTests/ContinuousLogDownloader.cs b/ContinuousTests/ContinuousLogDownloader.cs index 7fdc880..f5e0161 100644 --- a/ContinuousTests/ContinuousLogDownloader.cs +++ b/ContinuousTests/ContinuousLogDownloader.cs @@ -27,6 +27,12 @@ namespace ContinuousTests cancelToken.WaitHandle.WaitOne(TimeSpan.FromSeconds(15)); } + + // After testing has stopped, we wait a little bit and fetch the logs one more time. + // If our latest fetch was not recent, interesting test-related log activity might + // not have been captured yet. + Thread.Sleep(TimeSpan.FromSeconds(10)); + UpdateLogs(); } private void UpdateLogs()