File tree Expand file tree Collapse file tree 3 files changed +14
-11
lines changed
beacon_node/http_api/tests
testing/web3signer_tests/src
validator_client/http_api/src/tests Expand file tree Collapse file tree 3 files changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -3508,6 +3508,7 @@ impl ApiTester {
3508
3508
self
3509
3509
}
3510
3510
3511
+ #[ allow( clippy:: await_holding_lock) ] // This is a test, so it should be fine.
3511
3512
pub async fn test_get_validator_aggregate_attestation ( self ) -> Self {
3512
3513
if self
3513
3514
. chain
Original file line number Diff line number Diff line change @@ -175,11 +175,8 @@ mod tests {
175
175
// Read a Github API token from the environment. This is intended to prevent rate-limits on CI.
176
176
// We use a name that is unlikely to accidentally collide with anything the user has configured.
177
177
let github_token = env:: var ( "LIGHTHOUSE_GITHUB_TOKEN" ) ;
178
- download_binary (
179
- TEMP_DIR . lock ( ) . path ( ) . to_path_buf ( ) ,
180
- github_token. as_deref ( ) . unwrap_or ( "" ) ,
181
- )
182
- . await ;
178
+ let dest_dir = TEMP_DIR . lock ( ) . path ( ) . to_path_buf ( ) ;
179
+ download_binary ( dest_dir, github_token. as_deref ( ) . unwrap_or ( "" ) ) . await ;
183
180
} )
184
181
. await ;
185
182
Original file line number Diff line number Diff line change @@ -2147,8 +2147,11 @@ async fn import_remotekey_web3signer_enabled() {
2147
2147
// 1 validator imported.
2148
2148
assert_eq ! ( tester. vals_total( ) , 1 ) ;
2149
2149
assert_eq ! ( tester. vals_enabled( ) , 1 ) ;
2150
- let vals = tester. initialized_validators . read ( ) ;
2151
- let web3_vals = vals. validator_definitions ( ) ;
2150
+ let web3_vals = tester
2151
+ . initialized_validators
2152
+ . read ( )
2153
+ . validator_definitions ( )
2154
+ . to_vec ( ) ;
2152
2155
2153
2156
// Import remotekeys.
2154
2157
let import_res = tester
@@ -2165,11 +2168,13 @@ async fn import_remotekey_web3signer_enabled() {
2165
2168
2166
2169
assert_eq ! ( tester. vals_total( ) , 1 ) ;
2167
2170
assert_eq ! ( tester. vals_enabled( ) , 1 ) ;
2168
- let vals = tester. initialized_validators . read ( ) ;
2169
- let remote_vals = vals. validator_definitions ( ) ;
2171
+ {
2172
+ let vals = tester. initialized_validators . read ( ) ;
2173
+ let remote_vals = vals. validator_definitions ( ) ;
2170
2174
2171
- // Web3signer should not be overwritten since it is enabled.
2172
- assert ! ( web3_vals == remote_vals) ;
2175
+ // Web3signer should not be overwritten since it is enabled.
2176
+ assert ! ( web3_vals == remote_vals) ;
2177
+ }
2173
2178
2174
2179
// Remotekey should not be imported.
2175
2180
let expected_responses = vec ! [ SingleListRemotekeysResponse {
You can’t perform that action at this time.
0 commit comments