Skip to content

Commit

Permalink
Try to fix flaky test (#330)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rmunn authored Dec 15, 2023
1 parent 3de3771 commit 04eda79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LibChorusTests/notes/AnnotationRepositoryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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(@"<notes version='0'><annotation guid='123'>
<message guid='234'>&lt;p&gt;hello</message></annotation></notes>"))
{
Expand Down

0 comments on commit 04eda79

Please sign in to comment.