From 04eda7903f3fe09d92cfc3edf91acea598c92744 Mon Sep 17 00:00:00 2001 From: Robin Munn Date: Fri, 15 Dec 2023 09:26:28 +0700 Subject: [PATCH] Try to fix flaky test (#330) We'll start by more than doubling the time we allocate for this test to run, since the filesystem on a GitHub Actions runner appears slow. If that isn't enough to fix it, we should remove the test entirely. --- src/LibChorusTests/notes/AnnotationRepositoryTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/LibChorusTests/notes/AnnotationRepositoryTests.cs b/src/LibChorusTests/notes/AnnotationRepositoryTests.cs index 946b3fff..9c2e7882 100644 --- a/src/LibChorusTests/notes/AnnotationRepositoryTests.cs +++ b/src/LibChorusTests/notes/AnnotationRepositoryTests.cs @@ -227,8 +227,8 @@ public void AddAnnotation_NotifiesIndices() [Platform(Exclude = "Win", Reason = "flaky (on both platforms)")] public void ExternalFileModification_NotifiesIndices_ButSaveDoesNot() { - const int SleepTime = 10; // milliseconds - const int MaxTries = 1000; // max try 10ms * 1000 = 10s + const int SleepTime = 25; // milliseconds + const int MaxTries = 1000; // max try 25ms * 1000 = 25s using (var t = new TempFile(@" <p>hello")) {