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 9f67e1e commit 53dff30
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ConfigCat.Client.Tests/OverrideTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
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 @@ -362,7 +363,7 @@ public async Task LocalFile_Watcher_Reload()
Assert.AreEqual("initial", await client.GetValueAsync("fakeKey", string.Empty));

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

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

Expand All @@ -383,8 +384,8 @@ public async Task LocalFile_Watcher_Reload_Sync()

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

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

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

Expand Down

0 comments on commit 53dff30

Please sign in to comment.