mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 03:31:45 +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:
@@ -173,6 +173,8 @@ mod tests {
|
||||
}
|
||||
|
||||
impl Web3SignerRig {
|
||||
// We need to hold that lock as we want to get the binary only once
|
||||
#[allow(clippy::await_holding_lock)]
|
||||
pub async fn new(network: &str, listen_address: &str, listen_port: u16) -> Self {
|
||||
GET_WEB3SIGNER_BIN
|
||||
.get_or_init(|| async {
|
||||
@@ -210,7 +212,7 @@ mod tests {
|
||||
keystore_password_file: keystore_password_filename.to_string(),
|
||||
};
|
||||
let key_config_file =
|
||||
File::create(&keystore_dir.path().join("key-config.yaml")).unwrap();
|
||||
File::create(keystore_dir.path().join("key-config.yaml")).unwrap();
|
||||
serde_yaml::to_writer(key_config_file, &key_config).unwrap();
|
||||
|
||||
let tls_keystore_file = tls_dir().join("web3signer").join("key.p12");
|
||||
|
||||
Reference in New Issue
Block a user