From 6c0bb273d5d5405a00985621b17e36f8b4d64609 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Wed, 2 Sep 2026 14:24:33 +0300 Subject: feat: support independent multi-client tab views (#3526) --- src/client/shell/tests/keybindings_settings.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/client/shell/tests') diff --git a/src/client/shell/tests/keybindings_settings.rs b/src/client/shell/tests/keybindings_settings.rs index 5b0fced7..d20485b3 100644 --- a/src/client/shell/tests/keybindings_settings.rs +++ b/src/client/shell/tests/keybindings_settings.rs @@ -505,6 +505,7 @@ fn generic_endpoint_failures_and_control_errors_are_visible() { [ClientShellAction::Endpoint { request, .. }] => request.id.clone(), other => panic!("expected generic endpoint request, got {other:?}"), }; + let rejected_at = std::time::Instant::now(); let (repaint, actions) = state.handle_endpoint_result( "boot-1", &request_id, @@ -522,6 +523,9 @@ fn generic_endpoint_failures_and_control_errors_are_visible() { assert_eq!(notice.key.kind, ClientEndpointNoticeKind::Rejected); assert_eq!(notice.key.code, "workspace.focus:not_found"); assert_eq!(notice.body, "workspace no longer exists"); + let observed_at = std::time::Instant::now(); + assert!(notice.deadline >= rejected_at + std::time::Duration::from_secs(3)); + assert!(notice.deadline <= observed_at + std::time::Duration::from_secs(3)); assert!(state.endpoint_error.is_none()); assert!(state.receive_endpoint_error("Paste rejected: too large".into())); -- cgit v1.2.3