Skip to content

Commit 76114a0

Browse files
authored
chore: add integration tests for services pallet (#1034)
* fix : update wasm release flow * chore: add integration tests for services pallet * chore: format * chore: fix e2e * chore: fix e2e * chore: format
1 parent 2e36903 commit 76114a0

File tree

2 files changed

+799
-4
lines changed

2 files changed

+799
-4
lines changed

node/tests/common/mod.rs

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,12 @@ pub async fn subxt_client() -> subxt::OnlineClient<subxt::PolkadotConfig> {
187187
}
188188

189189
pub trait AddressConverter {
190+
#[allow(dead_code)]
190191
fn to_account_id(&self) -> subxt::utils::AccountId32;
191192
}
192193

193194
pub trait AccountIdConverter {
195+
#[allow(dead_code)]
194196
fn to_address(&self) -> alloy::primitives::Address;
195197
}
196198

@@ -254,9 +256,16 @@ where
254256
let config =
255257
command.create_configuration(this, tokio_runtime.handle().clone()).unwrap();
256258

257-
command
258-
.init(&CliWrapper::support_url(), &CliWrapper::impl_version(), |_, _| {}, &config)
259-
.unwrap();
259+
// Handle logger initialization gracefully - it may already be initialized by previous
260+
// tests
261+
if let Err(e) = command.init(
262+
&CliWrapper::support_url(),
263+
&CliWrapper::impl_version(),
264+
|_, _| {},
265+
&config,
266+
) {
267+
warn!("Logger initialization failed (likely already initialized): {e:?}");
268+
}
260269
sc_cli::Runner::<CliWrapper>::new(config, tokio_runtime, signals)
261270
}
262271
}
@@ -274,7 +283,7 @@ where
274283
max_past_logs: cli.eth.max_past_logs,
275284
tracing_raw_max_memory_usage: cli.eth.tracing_raw_max_memory_usage,
276285
};
277-
warn!("Starting the node with the following RPC config: {:?}", rpc_config);
286+
warn!("Starting the node with the following RPC config: {rpc_config:?}");
278287

279288
runner
280289
.async_run(|config| {

0 commit comments

Comments
 (0)