Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 2d0f090

Browse files
committed
Try to fix a test hanging in CI
1 parent 37407c6 commit 2d0f090

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/TrackingCollectionTests/TrackingCollectionTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using System.Threading;
1212
using NUnit.Framework;
1313
using System.Reactive;
14+
using System.Threading.Tasks;
1415

1516
[TestFixture]
1617
public class TrackingTests : TestBase
@@ -1839,7 +1840,7 @@ public void DisposingThrows()
18391840
}
18401841

18411842
[Test]
1842-
public void MultipleSortingAndFiltering()
1843+
public async Task MultipleSortingAndFiltering()
18431844
{
18441845
var expectedTotal = 20;
18451846
var rnd = new Random(214748364);
@@ -1887,10 +1888,9 @@ public void MultipleSortingAndFiltering()
18871888
(item, idx, list) => idx < 5
18881889
);
18891890
col.NewerComparer = OrderedComparer<Thing>.OrderByDescending(x => x.UpdatedAt).Compare;
1890-
col.ProcessingDelay = TimeSpan.Zero;
18911891
col.Subscribe();
18921892

1893-
col.OriginalCompleted.Wait();
1893+
await col.OriginalCompleted;
18941894

18951895
// it's initially sorted by date, so id list should not match
18961896
CollectionAssert.AreNotEqual(list1.Select(x => x.Number).ToEnumerable(), list2.Select(x => x.Number).ToEnumerable());

0 commit comments

Comments
 (0)