@@ -62,7 +62,7 @@ public void can_start_streams_by_aggregate()
6262 var s1 = Namer . GenerateForAggregate ( typeof ( TestAggregate ) , aggId ) ;
6363 AppendEvents ( 1 , _conn , s1 , 7 ) ;
6464 Start < TestAggregate > ( aggId ) ;
65- AssertEx . AtLeastModelVersion ( this , 2 , 1000 , msg : $ "Expected 2 got { Version } ") ; // 1 message + CatchupSubscriptionBecameLive
65+ AssertEx . AtLeastModelVersion ( this , 2 , msg : $ "Expected 2 got { Version } ") ; // 1 message + CatchupSubscriptionBecameLive
6666 AssertEx . IsOrBecomesTrue ( ( ) => Sum == 7 ) ;
6767 }
6868 [ Fact ]
@@ -75,14 +75,14 @@ public void can_start_streams_by_aggregate_category()
7575 AppendEvents ( 1 , _conn , s2 , 5 ) ;
7676 Start < ReadModelTestCategoryAggregate > ( null , true ) ;
7777
78- AssertEx . AtLeastModelVersion ( this , 3 , 1000 , msg : $ "Expected 3 got { Version } ") ;
78+ AssertEx . AtLeastModelVersion ( this , 3 , msg : $ "Expected 3 got { Version } ") ;
7979 AssertEx . IsOrBecomesTrue ( ( ) => Sum == 12 ) ;
8080 }
8181 [ Fact ]
8282 public void can_read_one_stream ( )
8383 {
8484 Start ( _stream1 ) ;
85- AssertEx . AtLeastModelVersion ( this , 11 , 1000 , msg : $ "Expected 11 got { Version } ") ;
85+ AssertEx . AtLeastModelVersion ( this , 11 , msg : $ "Expected 11 got { Version } ") ;
8686 AssertEx . IsOrBecomesTrue ( ( ) => Sum == 20 ) ;
8787 //confirm checkpoints
8888 Assert . Equal ( _stream1 , GetCheckpoint ( ) [ 0 ] . Item1 ) ;
@@ -93,7 +93,7 @@ public void can_read_two_streams()
9393 {
9494 Start ( _stream1 ) ;
9595 Start ( _stream2 ) ;
96- AssertEx . AtLeastModelVersion ( this , 22 , 1000 , msg : $ "Expected 22 got { Version } ") ;
96+ AssertEx . AtLeastModelVersion ( this , 22 , msg : $ "Expected 22 got { Version } ") ;
9797 AssertEx . IsOrBecomesTrue ( ( ) => Sum == 50 ) ;
9898 //confirm checkpoints
9999 Assert . Equal ( _stream1 , GetCheckpoint ( ) [ 0 ] . Item1 ) ;
@@ -105,29 +105,29 @@ public void can_read_two_streams()
105105 public void can_wait_for_one_stream_to_go_live ( )
106106 {
107107 Start ( _stream1 , null , true ) ;
108- AssertEx . AtLeastModelVersion ( this , 11 , 100 , msg : $ "Expected 11 got { Version } ") ;
108+ AssertEx . AtLeastModelVersion ( this , 11 , TimeSpan . FromMilliseconds ( 100 ) , msg : $ "Expected 11 got { Version } ") ;
109109 AssertEx . IsOrBecomesTrue ( ( ) => Sum == 20 , 100 ) ;
110110 }
111111 [ Fact ]
112112 public void can_wait_for_two_streams_to_go_live ( )
113113 {
114114 Start ( _stream1 , null , true ) ;
115- AssertEx . AtLeastModelVersion ( this , 11 , 100 , msg : $ "Expected 11 got { Version } ") ;
115+ AssertEx . AtLeastModelVersion ( this , 11 , TimeSpan . FromMilliseconds ( 100 ) , msg : $ "Expected 11 got { Version } ") ;
116116 AssertEx . IsOrBecomesTrue ( ( ) => Sum == 20 , 150 ) ;
117117
118118 Start ( _stream2 , null , true ) ;
119- AssertEx . AtLeastModelVersion ( this , 21 , 100 , msg : $ "Expected 21 got { Version } ") ;
119+ AssertEx . AtLeastModelVersion ( this , 21 , TimeSpan . FromMilliseconds ( 100 ) , msg : $ "Expected 21 got { Version } ") ;
120120 AssertEx . IsOrBecomesTrue ( ( ) => Sum == 50 , 150 ) ;
121121 }
122122 [ Fact ]
123123 public void can_listen_to_one_stream ( )
124124 {
125125 Start ( _stream1 ) ;
126- AssertEx . AtLeastModelVersion ( this , 11 , 1000 , msg : $ "Expected 11 got { Version } ") ;
126+ AssertEx . AtLeastModelVersion ( this , 11 , msg : $ "Expected 11 got { Version } ") ;
127127 AssertEx . IsOrBecomesTrue ( ( ) => Sum == 20 ) ;
128128 //add more messages
129129 AppendEvents ( 10 , _conn , _stream1 , 5 ) ;
130- AssertEx . AtLeastModelVersion ( this , 21 , 1000 , msg : $ "Expected 21 got { Version } ") ;
130+ AssertEx . AtLeastModelVersion ( this , 21 , msg : $ "Expected 21 got { Version } ") ;
131131 AssertEx . IsOrBecomesTrue ( ( ) => Sum == 70 ) ;
132132 //confirm checkpoints
133133 Assert . Equal ( _stream1 , GetCheckpoint ( ) [ 0 ] . Item1 ) ;
@@ -139,12 +139,12 @@ public void can_listen_to_two_streams()
139139 {
140140 Start ( _stream1 ) ;
141141 Start ( _stream2 ) ;
142- AssertEx . AtLeastModelVersion ( this , 22 , 1000 , msg : $ "Expected 22 got { Version } ") ;
142+ AssertEx . AtLeastModelVersion ( this , 22 , msg : $ "Expected 22 got { Version } ") ;
143143 AssertEx . IsOrBecomesTrue ( ( ) => Sum == 50 ) ;
144144 //add more messages
145145 AppendEvents ( 10 , _conn , _stream1 , 5 ) ;
146146 AppendEvents ( 10 , _conn , _stream2 , 7 ) ;
147- AssertEx . AtLeastModelVersion ( this , 42 , 1000 , msg : $ "Expected 42 got { Version } ") ;
147+ AssertEx . AtLeastModelVersion ( this , 42 , msg : $ "Expected 42 got { Version } ") ;
148148 AssertEx . IsOrBecomesTrue ( ( ) => Sum == 170 ) ;
149149 //confirm checkpoints
150150 Assert . Equal ( _stream1 , GetCheckpoint ( ) [ 0 ] . Item1 ) ;
@@ -161,11 +161,11 @@ public void can_use_checkpoint_on_one_stream()
161161 //start at the checkpoint
162162 Start ( _stream1 , checkPoint ) ;
163163 //add the one recorded event
164- AssertEx . AtLeastModelVersion ( this , 2 , 100 , msg : $ "Expected 2 got { Version } ") ;
164+ AssertEx . AtLeastModelVersion ( this , 2 , TimeSpan . FromMilliseconds ( 100 ) , msg : $ "Expected 2 got { Version } ") ;
165165 AssertEx . IsOrBecomesTrue ( ( ) => Sum == 20 ) ;
166166 //add more messages
167167 AppendEvents ( 10 , _conn , _stream1 , 5 ) ;
168- AssertEx . AtLeastModelVersion ( this , 12 , 100 , msg : $ "Expected 12 got { Version } ") ;
168+ AssertEx . AtLeastModelVersion ( this , 12 , TimeSpan . FromMilliseconds ( 100 ) , msg : $ "Expected 12 got { Version } ") ;
169169 AssertEx . IsOrBecomesTrue ( ( ) => Sum == 70 ) ;
170170 //confirm checkpoints
171171 Assert . Equal ( _stream1 , GetCheckpoint ( ) [ 0 ] . Item1 ) ;
@@ -181,12 +181,12 @@ public void can_use_checkpoint_on_two_streams()
181181 Start ( _stream1 , checkPoint1 ) ;
182182 Start ( _stream2 , checkPoint2 ) ;
183183 //add the recorded events 2 on stream 1 & 5 on stream 2
184- AssertEx . AtLeastModelVersion ( this , 7 , 1000 , msg : $ "Expected 7 got { Version } ") ;
184+ AssertEx . AtLeastModelVersion ( this , 7 , msg : $ "Expected 7 got { Version } ") ;
185185 AssertEx . IsOrBecomesTrue ( ( ) => Sum == 50 , msg : $ "Expected 50 got { Sum } ") ;
186186 //add more messages
187187 AppendEvents ( 10 , _conn , _stream1 , 5 ) ;
188188 AppendEvents ( 10 , _conn , _stream2 , 7 ) ;
189- AssertEx . AtLeastModelVersion ( this , 27 , 1000 , msg : $ "Expected 27 got { Version } ") ;
189+ AssertEx . AtLeastModelVersion ( this , 27 , msg : $ "Expected 27 got { Version } ") ;
190190 AssertEx . IsOrBecomesTrue ( ( ) => Sum == 170 ) ;
191191 //confirm checkpoints
192192 Assert . Equal ( _stream1 , GetCheckpoint ( ) [ 0 ] . Item1 ) ;
@@ -203,11 +203,11 @@ public void can_listen_to_the_same_stream_twice()
203203 Start ( _stream1 ) ;
204204 Start ( _stream1 ) ;
205205 //double events
206- AssertEx . AtLeastModelVersion ( this , 22 , 1000 , msg : $ "Expected 22 got { Version } ") ;
206+ AssertEx . AtLeastModelVersion ( this , 22 , msg : $ "Expected 22 got { Version } ") ;
207207 AssertEx . IsOrBecomesTrue ( ( ) => Sum == 40 ) ;
208208 //even more doubled events
209209 AppendEvents ( 10 , _conn , _stream1 , 5 ) ;
210- AssertEx . AtLeastModelVersion ( this , 42 , 2000 , msg : $ "Expected 42 got { Version } ") ;
210+ AssertEx . AtLeastModelVersion ( this , 42 , TimeSpan . FromSeconds ( 2 ) , msg : $ "Expected 42 got { Version } ") ;
211211 AssertEx . IsOrBecomesTrue ( ( ) => Sum == 140 ) ;
212212 }
213213
0 commit comments