@@ -39,10 +39,10 @@ async fn happy_path_no_duplicates() -> anyhow::Result<()> {
3939 contract. increase ( ) . send ( ) . await ?. watch ( ) . await ?;
4040 contract. increase ( ) . send ( ) . await ?. watch ( ) . await ?;
4141
42- // Assert `StartingLiveStream ` after emitting live events, because the test finishes the "latest
42+ // Assert `SwitchingToLive ` after emitting live events, because the test finishes the "latest
4343 // events" phase before new events are emitted, thus the "live" phase actually starts from a
4444 // future block.
45- assert_next ! ( stream, Notification :: StartingLiveStream ) ;
45+ assert_next ! ( stream, Notification :: SwitchingToLive ) ;
4646 assert_event_sequence_final ! (
4747 stream,
4848 & [
@@ -81,10 +81,10 @@ async fn fewer_historical_then_continues_live() -> anyhow::Result<()> {
8181 contract. increase ( ) . send ( ) . await ?. watch ( ) . await ?;
8282 contract. increase ( ) . send ( ) . await ?. watch ( ) . await ?;
8383
84- // Assert `StartingLiveStream ` after emitting live events, because the test finishes the "latest
84+ // Assert `SwitchingToLive ` after emitting live events, because the test finishes the "latest
8585 // events" phase before new events are emitted, thus the "live" phase actually starts from a
8686 // future block.
87- assert_next ! ( stream, Notification :: StartingLiveStream ) ;
87+ assert_next ! ( stream, Notification :: SwitchingToLive ) ;
8888 assert_event_sequence_final ! (
8989 stream,
9090 & [
@@ -128,10 +128,10 @@ async fn exact_historical_count_then_live() -> anyhow::Result<()> {
128128 // Live continues
129129 contract. increase ( ) . send ( ) . await ?. watch ( ) . await ?;
130130
131- // Assert `StartingLiveStream ` after emitting live events, because the test finishes the "latest
131+ // Assert `SwitchingToLive ` after emitting live events, because the test finishes the "latest
132132 // events" phase before new events are emitted, thus the "live" phase actually starts from a
133133 // future block.
134- assert_next ! ( stream, Notification :: StartingLiveStream ) ;
134+ assert_next ! ( stream, Notification :: SwitchingToLive ) ;
135135 assert_next ! ( stream, & [ TestCounter :: CountIncreased { newCount: U256 :: from( 5 ) } ] ) ;
136136 assert_empty ! ( stream) ;
137137
@@ -156,10 +156,10 @@ async fn no_historical_only_live_streams() -> anyhow::Result<()> {
156156
157157 // Latest events are empty
158158
159- // Assert `StartingLiveStream ` after emitting live events, because the test finishes the "latest
159+ // Assert `SwitchingToLive ` after emitting live events, because the test finishes the "latest
160160 // events" phase before new events are emitted, thus the "live" phase actually starts from a
161161 // future block.
162- assert_next ! ( stream, Notification :: StartingLiveStream ) ;
162+ assert_next ! ( stream, Notification :: SwitchingToLive ) ;
163163 assert_event_sequence_final ! (
164164 stream,
165165 & [
@@ -207,10 +207,10 @@ async fn block_gaps_do_not_affect_number_of_events_streamed() -> anyhow::Result<
207207 // Immediately produce a new live event in a new block
208208 contract. increase ( ) . send ( ) . await ?. watch ( ) . await ?;
209209
210- // Assert `StartingLiveStream ` after emitting live events, because the test finishes the "latest
210+ // Assert `SwitchingToLive ` after emitting live events, because the test finishes the "latest
211211 // events" phase before new events are emitted, thus the "live" phase actually starts from a
212212 // future block.
213- assert_next ! ( stream, Notification :: StartingLiveStream ) ;
213+ assert_next ! ( stream, Notification :: SwitchingToLive ) ;
214214 assert_next ! ( stream, & [ TestCounter :: CountIncreased { newCount: U256 :: from( 4 ) } ] ) ;
215215 assert_empty ! ( stream) ;
216216
@@ -242,7 +242,7 @@ async fn waiting_on_live_logs_arriving() -> anyhow::Result<()> {
242242 ) ;
243243 assert_empty ! ( stream) ;
244244
245- // `Notification::StartingLiveStream ` arrives only on first live block received
245+ // `Notification::SwitchingToLive ` arrives only on first live block received
246246
247247 Ok ( ( ) )
248248}
0 commit comments