Skip to content

Commit

Permalink
[test]: fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry Balashov <[email protected]>
  • Loading branch information
0x009922 committed Mar 21, 2024
1 parent fd557a8 commit c5b9cca
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 2 additions & 0 deletions cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ async fn main() -> Result<()> {

#[cfg(test)]
mod tests {
use std::path::PathBuf;

use iroha::is_colouring_supported;

use super::*;
Expand Down
1 change: 0 additions & 1 deletion config/src/parameters/user/boilerplate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,6 @@ pub struct TelemetryPartial {
#[serde(deny_unknown_fields, default)]
pub struct TelemetryDevPartial {
pub out_file: UserField<PathBuf>,
pub tokio_console_address: UserField<SocketAddr>,
}

impl UnwrapPartial for TelemetryDevPartial {
Expand Down
7 changes: 3 additions & 4 deletions config/tests/fixtures.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ fn minimal_config_snapshot() -> Result<()> {
logger: Logger {
level: INFO,
format: Full,
tokio_console_address: 127.0.0.1:5555,
},
queue: Queue {
capacity: 65536,
Expand All @@ -128,7 +127,9 @@ fn minimal_config_snapshot() -> Result<()> {
store_dir: "./storage/snapshot",
},
telemetry: None,
dev_telemetry: None,
dev_telemetry: DevTelemetry {
out_file: None,
},
chain_wide: ChainWide {
max_transactions_in_block: 512,
block_time: 2s,
Expand Down Expand Up @@ -358,7 +359,6 @@ fn full_envs_set_is_consumed() -> Result<()> {
format: Some(
Pretty,
),
tokio_console_address: None,
},
queue: QueuePartial {
capacity: None,
Expand Down Expand Up @@ -480,7 +480,6 @@ fn multiple_extends_works() -> Result<()> {
format: Some(
Compact,
),
tokio_console_address: None,
}"#]];
expected.assert_eq(&format!("{layer:#?}"));

Expand Down
1 change: 0 additions & 1 deletion config/tests/fixtures/full.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ force_soft_fork = true
[logger]
level = "TRACE"
format = "compact"
tokio_console_address = "127.0.0.1:5555"

[queue]
capacity = 65536
Expand Down
1 change: 0 additions & 1 deletion configs/peer.template.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
[logger]
# level = "INFO"
# format = "full"
# tokio_console_address = "127.0.0.1:5555"

## Transactions Queue
[queue]
Expand Down

0 comments on commit c5b9cca

Please sign in to comment.