From 4d1362cf43cb4e307ff67e1044dfd79761d6cfce Mon Sep 17 00:00:00 2001 From: Lewis Date: Wed, 30 Sep 2026 12:26:28 +0300 Subject: [PATCH] knot-ssh: keep coverage warming, defer unknown keys to push check Lewis: May this revision serve well! --- knot2/crates/knot-ssh/src/lib.rs | 4 +--- knot2/crates/knot-ssh/tests/ssh_push.rs | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/knot2/crates/knot-ssh/src/lib.rs b/knot2/crates/knot-ssh/src/lib.rs index 477a28966..f42b65c92 100644 --- a/knot2/crates/knot-ssh/src/lib.rs +++ b/knot2/crates/knot-ssh/src/lib.rs @@ -15,9 +15,7 @@ use knot_index::{Index, KeyTtl}; use knot_maintenance::MaintenanceHandle; use knot_pack::{MaxWireBytes, PackLimits}; use knot_runtime::{Clock, Entropy, HttpTransport, OsEntropy}; -use knot_types::{ - AccountDid, ActorId, AdmissionPolicy, AppviewEndpoint, CiLogsAddr, KnotHostname, -}; +use knot_types::{AccountDid, ActorId, AdmissionPolicy, AppviewEndpoint, CiLogsAddr, KnotHostname}; use russh::keys::ssh_key::rand_core; use russh::keys::{Algorithm, PrivateKey, ssh_key}; use russh::server::{Config, Server as _}; diff --git a/knot2/crates/knot-ssh/tests/ssh_push.rs b/knot2/crates/knot-ssh/tests/ssh_push.rs index 53c4eeaff..7a9785341 100644 --- a/knot2/crates/knot-ssh/tests/ssh_push.rs +++ b/knot2/crates/knot-ssh/tests/ssh_push.rs @@ -1693,7 +1693,6 @@ async fn a_new_collaborator(pds_down: bool) -> Invitation { let keys = index.keys(); keys.record(&owner, held(&owner_line), forever()); keys.record(&bystander, held(&bystander_line), forever()); - keys.mark_ready(index.generation()); let records = Accounts::publishing(HashMap::from([ (OWNER_DID.to_string(), vec![owner_line]), -- 2.51.2