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).
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user