Skip to content

Commit 1115b27

Browse files
author
Alan Hanson
committed
Update test post PR comments
1 parent 9f884ca commit 1115b27

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

upstairs/src/upstairs.rs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff 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)),

0 commit comments

Comments
 (0)