mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
Fix cli tests
This commit is contained in:
@@ -7,7 +7,7 @@ use std::process::{Command, Stdio};
|
|||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use tempfile::{tempdir, TempDir};
|
use tempfile::{tempdir, TempDir};
|
||||||
use types::*;
|
use types::*;
|
||||||
use validator_manager::validators::{
|
use validator_manager::{
|
||||||
create_validators::CreateConfig,
|
create_validators::CreateConfig,
|
||||||
import_validators::ImportConfig,
|
import_validators::ImportConfig,
|
||||||
move_validators::{MoveConfig, Validators},
|
move_validators::{MoveConfig, Validators},
|
||||||
@@ -84,23 +84,19 @@ impl<T: DeserializeOwned> CommandLineTest<T> {
|
|||||||
|
|
||||||
impl CommandLineTest<CreateConfig> {
|
impl CommandLineTest<CreateConfig> {
|
||||||
fn validators_create() -> Self {
|
fn validators_create() -> Self {
|
||||||
Self::default()
|
Self::default().flag("create", None)
|
||||||
.flag("validators", None)
|
|
||||||
.flag("create", None)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl CommandLineTest<ImportConfig> {
|
impl CommandLineTest<ImportConfig> {
|
||||||
fn validators_import() -> Self {
|
fn validators_import() -> Self {
|
||||||
Self::default()
|
Self::default().flag("import", None)
|
||||||
.flag("validators", None)
|
|
||||||
.flag("import", None)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl CommandLineTest<MoveConfig> {
|
impl CommandLineTest<MoveConfig> {
|
||||||
fn validators_move() -> Self {
|
fn validators_move() -> Self {
|
||||||
Self::default().flag("validators", None).flag("move", None)
|
Self::default().flag("move", None)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user