This repository was archived by the owner on Jun 21, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/TrackingCollectionTests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1111using System . Threading ;
1212using NUnit . Framework ;
1313using System . Reactive ;
14+ using System . Threading . Tasks ;
1415
1516[ TestFixture ]
1617public 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 ( ) ) ;
You can’t perform that action at this time.
0 commit comments