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

Commit 612f106

Browse files
committed
Fix tests
1 parent abc934d commit 612f106

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/TrackingCollectionTests/TrackingCollectionTests.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,18 +1888,9 @@ public void MultipleSortingAndFiltering()
18881888
);
18891889
col.NewerComparer = OrderedComparer<Thing>.OrderByDescending(x => x.UpdatedAt).Compare;
18901890
col.ProcessingDelay = TimeSpan.Zero;
1891-
1892-
var evt = new ManualResetEvent(false);
1893-
col.OriginalCompleted.Subscribe(_ => evt.Set());
18941891
col.Subscribe();
1895-
//col.Subscribe(t =>
1896-
//{
1897-
// if (++count == expectedTotal * 2)
1898-
// evt.Set();
1899-
//}, () => { });
19001892

1901-
evt.WaitOne();
1902-
evt.Reset();
1893+
col.OriginalCompleted.Wait();
19031894

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

0 commit comments

Comments
 (0)