Skip to content

Commit

Permalink
Update OverrideTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
z4kn4fein committed Apr 5, 2022
1 parent 53dff30 commit 01b64b9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/ConfigCat.Client.Tests/OverrideTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Threading.Tasks;

namespace ConfigCat.Client.Tests
Expand Down Expand Up @@ -361,9 +360,9 @@ public async Task LocalFile_Watcher_Reload()
});

Assert.AreEqual("initial", await client.GetValueAsync("fakeKey", string.Empty));

await Task.Delay(100);
await WriteContent(SampleFileToCreate, "modified");
Thread.Sleep(3000);
await Task.Delay(1500);

Assert.AreEqual("modified", await client.GetValueAsync("fakeKey", string.Empty));

Expand All @@ -383,9 +382,9 @@ public async Task LocalFile_Watcher_Reload_Sync()
});

Assert.AreEqual("initial", client.GetValue("fakeKey", string.Empty));

await WriteContent(SampleFileToCreate, "modified");
Thread.Sleep(3000);
await Task.Delay(100);
await WriteContent(SampleFileToCreate, "modified");
await Task.Delay(1500);

Assert.AreEqual("modified", client.GetValue("fakeKey", string.Empty));

Expand Down

0 comments on commit 01b64b9

Please sign in to comment.