From 874e9e6477030d8fcd0b49b4c39d8fc31f97f8af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nurzhan=20Sak=C3=A9n?= Date: Fri, 26 Apr 2024 12:56:03 +0400 Subject: [PATCH] [fix]: config test cases use the current configuration (#4492) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nurzhan Sakén --- config/tests/fixtures.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/config/tests/fixtures.rs b/config/tests/fixtures.rs index cfc930288fa..e88b2fdf155 100644 --- a/config/tests/fixtures.rs +++ b/config/tests/fixtures.rs @@ -65,7 +65,18 @@ fn minimal_config_snapshot() -> Result<()> { ), private_key: "[REDACTED PrivateKey]", }, - p2p_address: 127.0.0.1:1337, + peer_id: PeerId { + address: 127.0.0.1:1337, + public_key: PublicKey( + ed25519( + "ed01208BA62848CF767D72E7F7F4B9D2D7BA07FEE33760F79ABE5597A51520E292A0CB", + ), + ), + }, + }, + network: Network { + address: 127.0.0.1:1337, + idle_timeout: 60s, }, genesis: Partial { public_key: PublicKey( @@ -363,6 +374,7 @@ fn full_envs_set_is_consumed() -> Result<()> { block_gossip_period: None, transaction_gossip_max_size: None, transaction_gossip_period: None, + idle_timeout: None, }, logger: LoggerPartial { level: Some(