mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-17 21:08:32 +00:00
Enable lints for tests only running optimized (#6664)
* enable linting optimized-only tests * fix automatically fixable or obvious lints * fix suspicious_open_options by removing manual options * fix `await_holding_lock`s * avoid failing lint due to now disabled `#[cfg(debug_assertions)]` * reduce future sizes in tests * fix accidently flipped assert logic * restore holding lock for web3signer download * Merge branch 'unstable' into lint-opt-tests
This commit is contained in:
@@ -73,7 +73,7 @@ fn get_valid_sync_committee_message_for_block(
|
||||
let head_state = harness.chain.head_beacon_state_cloned();
|
||||
let (signature, _) = harness
|
||||
.make_sync_committee_messages(&head_state, block_root, slot, relative_sync_committee)
|
||||
.get(0)
|
||||
.first()
|
||||
.expect("sync messages should exist")
|
||||
.get(message_index)
|
||||
.expect("first sync message should exist")
|
||||
@@ -104,7 +104,7 @@ fn get_valid_sync_contribution(
|
||||
);
|
||||
|
||||
let (_, contribution_opt) = sync_contributions
|
||||
.get(0)
|
||||
.first()
|
||||
.expect("sync contributions should exist");
|
||||
let contribution = contribution_opt
|
||||
.as_ref()
|
||||
|
||||
Reference in New Issue
Block a user