Skip to content
Snippets Groups Projects
Commit cfa179f2 authored by Roman Borschel's avatar Roman Borschel Committed by GitHub
Browse files

Safe logger initialisation in test. (#5311)

env_logger::init() can lead to panics on concurrent test execution.

See: https://gitlab.parity.io/parity/substrate/-/jobs/422283
parent 04d3ab56
No related merge requests found
......@@ -357,7 +357,7 @@ fn good_commit_leads_to_relay() {
#[test]
fn bad_commit_leads_to_report() {
env_logger::init();
let _ = env_logger::try_init();
let private = [Ed25519Keyring::Alice, Ed25519Keyring::Bob, Ed25519Keyring::Charlie];
let public = make_ids(&private[..]);
let voter_set = Arc::new(public.iter().cloned().collect::<VoterSet<AuthorityId>>());
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment