File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/NHibernate.Search.Tests Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ public async Task ProperCopyAsync()
60
60
await ( tx . CommitAsync ( ) ) ;
61
61
session . Close ( ) ;
62
62
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)
64
64
await ( Task . Delay ( waitPeriodMilli ) ) ;
65
65
66
66
// assert that the master has indexed the snowstorm
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ public void ProperCopy()
49
49
tx . Commit ( ) ;
50
50
session . Close ( ) ;
51
51
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)
53
53
Thread . Sleep ( waitPeriodMilli ) ;
54
54
55
55
// assert that the master has indexed the snowstorm
You can’t perform that action at this time.
0 commit comments