mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-26 01:03:40 +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:
@@ -54,7 +54,7 @@ async fn base_altair_bellatrix_capella() {
|
||||
/*
|
||||
* Do the Altair fork.
|
||||
*/
|
||||
harness.extend_to_slot(altair_fork_slot).await;
|
||||
Box::pin(harness.extend_to_slot(altair_fork_slot)).await;
|
||||
|
||||
let altair_head = &harness.chain.head_snapshot().beacon_block;
|
||||
assert!(altair_head.as_altair().is_ok());
|
||||
@@ -63,7 +63,7 @@ async fn base_altair_bellatrix_capella() {
|
||||
/*
|
||||
* Do the Bellatrix fork, without a terminal PoW block.
|
||||
*/
|
||||
harness.extend_to_slot(bellatrix_fork_slot).await;
|
||||
Box::pin(harness.extend_to_slot(bellatrix_fork_slot)).await;
|
||||
|
||||
let bellatrix_head = &harness.chain.head_snapshot().beacon_block;
|
||||
assert!(bellatrix_head.as_bellatrix().is_ok());
|
||||
@@ -81,7 +81,7 @@ async fn base_altair_bellatrix_capella() {
|
||||
/*
|
||||
* Next Bellatrix block shouldn't include an exec payload.
|
||||
*/
|
||||
harness.extend_slots(1).await;
|
||||
Box::pin(harness.extend_slots(1)).await;
|
||||
|
||||
let one_after_bellatrix_head = &harness.chain.head_snapshot().beacon_block;
|
||||
assert!(
|
||||
@@ -112,7 +112,7 @@ async fn base_altair_bellatrix_capella() {
|
||||
terminal_block.timestamp = timestamp;
|
||||
}
|
||||
});
|
||||
harness.extend_slots(1).await;
|
||||
Box::pin(harness.extend_slots(1)).await;
|
||||
|
||||
let two_after_bellatrix_head = &harness.chain.head_snapshot().beacon_block;
|
||||
assert!(
|
||||
|
||||
Reference in New Issue
Block a user