From 40f1794d41235110fe73f7ae83634ae4f9b8d960 Mon Sep 17 00:00:00 2001 From: dave Date: Sun, 26 Apr 2026 22:04:12 +0000 Subject: [PATCH] fix: restore #[test] attributes on parse_no_args, peer_receives_op_encoded_via_wire_codec, keepalive_constants_are_correct Same root cause as 0d805313: when extracting a test that's the FIRST inside its mod block, the slicer started at the fn line and missed the leading #[test] attribute on the previous line. Test count now matches pre-split count (2636). --- server/src/cli.rs | 1 + server/src/crdt_sync/server.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/server/src/cli.rs b/server/src/cli.rs index d98879e3..6b6c603e 100644 --- a/server/src/cli.rs +++ b/server/src/cli.rs @@ -178,6 +178,7 @@ pub(crate) fn resolve_path_arg(path_str: Option<&str>, cwd: &std::path::Path) -> mod tests { use super::*; + #[test] fn parse_no_args() { let result = parse_cli_args(&[]).unwrap(); assert_eq!(result.port, None); diff --git a/server/src/crdt_sync/server.rs b/server/src/crdt_sync/server.rs index 6dd8c5d0..0ce9df91 100644 --- a/server/src/crdt_sync/server.rs +++ b/server/src/crdt_sync/server.rs @@ -325,6 +325,7 @@ mod tests { use super::super::wire::SyncMessagePublic; use super::super::handshake::perform_auth_handshake; + #[test] fn peer_receives_op_encoded_via_wire_codec() { use bft_json_crdt::json_crdt::BaseCrdt; use bft_json_crdt::keypair::make_keypair; @@ -822,6 +823,7 @@ mod tests { } + #[test] fn keepalive_constants_are_correct() { assert_eq!( super::super::PING_INTERVAL_SECS,