Skip to content

Commit 64e9417

Browse files
authored
test: increase wait time in ProperCopy to avoid flakiness (#36)
1 parent a58f60c commit 64e9417

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/NHibernate.Search.Tests/Async/DirectoryProvider/FSSlaveAndMasterDPTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public async Task ProperCopyAsync()
6060
await (tx.CommitAsync());
6161
session.Close();
6262

63-
int waitPeriodMilli = 2 * 1 * 1000 + 10; //wait a bit more than 2 refresh (one master / one slave)
63+
var waitPeriodMilli = TimeSpan.FromSeconds(1.5 * 2); //wait a bit more than 2 refresh (one master / one slave)
6464
await (Task.Delay(waitPeriodMilli));
6565

6666
// assert that the master has indexed the snowstorm

src/NHibernate.Search.Tests/DirectoryProvider/FSSlaveAndMasterDPTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void ProperCopy()
4949
tx.Commit();
5050
session.Close();
5151

52-
int waitPeriodMilli = 2 * 1 * 1000 + 10; //wait a bit more than 2 refresh (one master / one slave)
52+
var waitPeriodMilli = TimeSpan.FromSeconds(1.5 * 2); //wait a bit more than 2 refresh (one master / one slave)
5353
Thread.Sleep(waitPeriodMilli);
5454

5555
// assert that the master has indexed the snowstorm

0 commit comments

Comments
 (0)