File tree Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Expand file tree Collapse file tree 1 file changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -4708,21 +4708,11 @@ pub(crate) mod test {
47084708
47094709 // Now simulate client 2 spontaneously going offline during live repair
47104710 // This is what would happen when a connection drops unexpectedly
4711- set_downstairs_offline ( & mut up, ClientId :: new ( 2 ) ) ;
4712-
4713- // Verify client 2 is now offline
4714- assert_eq ! (
4715- up. ds_state( ClientId :: new( 2 ) ) ,
4716- DsState :: Connecting {
4717- state: NegotiationState :: Start ,
4718- mode: ConnectionMode :: Offline
4719- }
4711+ up. apply_client_action (
4712+ ClientId :: new ( 2 ) ,
4713+ ClientAction :: TaskStopped ( ClientRunResult :: Timeout ) ,
47204714 ) ;
47214715
4722- // Call check_gone_too_long() which should mark offline downstairs as
4723- // faulted because live repair is in progress
4724- up. downstairs . check_gone_too_long ( ClientId :: new ( 2 ) ) ;
4725-
47264716 // After check_gone_too_long, client 2 should be faulted (not offline)
47274717 assert_eq ! (
47284718 up. ds_state( ClientId :: new( 2 ) ) ,
You can’t perform that action at this time.
0 commit comments