Skip to content

Commit 6f41a19

Browse files
committed
Fix test
1 parent 2407965 commit 6f41a19

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

lighthouse/tests/validator_manager.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,8 @@ pub fn validator_list_defaults() {
450450
let expected = ListConfig {
451451
vc_url: SensitiveUrl::parse("http://localhost:5062").unwrap(),
452452
vc_token_path: PathBuf::from("./token.json"),
453+
beacon_url: None,
454+
validators_to_display: vec![],
453455
};
454456
assert_eq!(expected, config);
455457
});
@@ -503,7 +505,6 @@ pub fn validator_exit_defaults() {
503505
beacon_url: Some(SensitiveUrl::parse("http://localhost:5052").unwrap()),
504506
exit_epoch: None,
505507
presign: false,
506-
exit_status: false,
507508
};
508509
assert_eq!(expected, config);
509510
});

validator_manager/src/exit_validators.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,6 @@ mod test {
431431
beacon_url: Some(beacon_url),
432432
exit_epoch: None,
433433
presign: false,
434-
exit_status: false,
435434
});
436435

437436
self.validators = local_validators.clone();

validator_manager/src/list_validators.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,9 @@ mod test {
223223
use crate::{
224224
common::ValidatorSpecification, import_validators::tests::TestBuilder as ImportTestBuilder,
225225
};
226+
use types::MainnetEthSpec;
226227
use validator_http_api::{test_utils::ApiTester, Config as HttpConfig};
228+
type E = MainnetEthSpec;
227229

228230
struct TestBuilder {
229231
list_config: Option<ListConfig>,
@@ -252,6 +254,8 @@ mod test {
252254
self.list_config = Some(ListConfig {
253255
vc_url: builder.get_import_config().vc_url,
254256
vc_token_path: builder.get_import_config().vc_token_path,
257+
beacon_url: None,
258+
validators_to_display: vec![],
255259
});
256260

257261
self.vc_token =
@@ -288,7 +292,7 @@ mod test {
288292
.write_all(self.vc_token.clone().unwrap().as_bytes())
289293
.unwrap();
290294

291-
let result = run(self.list_config.clone().unwrap()).await;
295+
let result = run::<E>(self.list_config.clone().unwrap()).await;
292296

293297
if result.is_ok() {
294298
let result_ref = result.as_ref().unwrap();

0 commit comments

Comments
 (0)