From b7fda1e6bf9f0032661d9943b95cea8e7302a03c Mon Sep 17 00:00:00 2001 From: cuiweiyuan Date: Thu, 8 Aug 2024 15:14:34 +0800 Subject: [PATCH 1/2] chore: fix some comments Signed-off-by: cuiweiyuan --- network/src/tests/peer_registry.rs | 2 +- script/src/verify/tests/ckb_latest/features_since_v2023.rs | 4 ++-- test/src/specs/sync/sync_churn.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/network/src/tests/peer_registry.rs b/network/src/tests/peer_registry.rs index 88166fb9a3..0e335876ee 100644 --- a/network/src/tests/peer_registry.rs +++ b/network/src/tests/peer_registry.rs @@ -191,7 +191,7 @@ fn test_accept_inbound_peer_eviction() { peer.connected_time = now - Duration::from_secs(10); }; } - // thoses peers will not be protect, we add them to evict_targets + // theses peers will not be protect, we add them to evict_targets for _ in 0..longest_connection_time_peers_count { let peer_addr = peers_iter.next().unwrap(); let peer_id = extract_peer_id(peer_addr).unwrap(); diff --git a/script/src/verify/tests/ckb_latest/features_since_v2023.rs b/script/src/verify/tests/ckb_latest/features_since_v2023.rs index aafed8439d..db95c73d37 100644 --- a/script/src/verify/tests/ckb_latest/features_since_v2023.rs +++ b/script/src/verify/tests/ckb_latest/features_since_v2023.rs @@ -15,8 +15,8 @@ use crate::verify::{tests::utils::*, *}; // check_spawn_set_content: set_content() with content < length, = length and > length. // check_spawn_out_of_cycles: child script out-of-cycles. // check_spawn_exec: A exec B spawn C. -// check_spawn_strcat_wrap: A spawn B spwan C. -// check_spawn_out_of_cycles_wrap: A spawn B spwan C, but C out-of-cycles. +// check_spawn_strcat_wrap: A spawn B spawn C. +// check_spawn_out_of_cycles_wrap: A spawn B spawn C, but C out-of-cycles. // check_spawn_recursive: A spawn A spawn A ... ... spawn A // check_spawn_big_memory_size: fails when memory_limit > 8. // check_spawn_big_content_length: fails when content_length > 256K. diff --git a/test/src/specs/sync/sync_churn.rs b/test/src/specs/sync/sync_churn.rs index a25a74ed87..91e25ce039 100644 --- a/test/src/specs/sync/sync_churn.rs +++ b/test/src/specs/sync/sync_churn.rs @@ -42,7 +42,7 @@ impl Spec for SyncChurn { let mining_node = select_random_node(&mut rng, &mut mining_nodes); mining_node.mine(1); // Because the test that waiting for nodes to sync has a implicit maximum waiting time - // (currently 60 seconds, we can sync about 200 blocks per second, so a maxium blocks of 10000 is reasonable) + // (currently 60 seconds, we can sync about 200 blocks per second, so a maximum blocks of 10000 is reasonable) // and the implicit waiting time is not long enough when there are too many blocks to sync, // so we stop mining when the tip block number is greater than 15000. // Otherwise nodes may not be able to sync within the implicit waiting time. From 66e3039401d5b59818d7163a32500472a59c1d67 Mon Sep 17 00:00:00 2001 From: Yukang Date: Mon, 12 Aug 2024 09:56:43 +0800 Subject: [PATCH 2/2] Update network/src/tests/peer_registry.rs --- network/src/tests/peer_registry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/src/tests/peer_registry.rs b/network/src/tests/peer_registry.rs index 0e335876ee..99f6dd8686 100644 --- a/network/src/tests/peer_registry.rs +++ b/network/src/tests/peer_registry.rs @@ -191,7 +191,7 @@ fn test_accept_inbound_peer_eviction() { peer.connected_time = now - Duration::from_secs(10); }; } - // theses peers will not be protect, we add them to evict_targets + // these peers will not be protect, we add them to evict_targets for _ in 0..longest_connection_time_peers_count { let peer_addr = peers_iter.next().unwrap(); let peer_id = extract_peer_id(peer_addr).unwrap();