mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-04-24 11:17:57 +00:00
test
This commit is contained in:
@@ -499,6 +499,10 @@ impl ResolverApi for GethNode {
|
||||
}
|
||||
|
||||
impl Node for GethNode {
|
||||
fn name() -> &'static str {
|
||||
"geth"
|
||||
}
|
||||
|
||||
fn new(config: &Arguments) -> Self {
|
||||
let geth_directory = config.directory().join(Self::BASE_DIRECTORY);
|
||||
let id = NODE_COUNT.fetch_add(1, Ordering::SeqCst);
|
||||
|
||||
@@ -105,7 +105,11 @@ impl KitchensinkNode {
|
||||
.arg("export-chain-spec")
|
||||
.arg("--chain")
|
||||
.arg("dev")
|
||||
.output()?;
|
||||
.output()
|
||||
.context(format!(
|
||||
"Failed to export chain spec with {}",
|
||||
self.substrate_binary.display()
|
||||
))?;
|
||||
|
||||
if !output.status.success() {
|
||||
anyhow::bail!(
|
||||
@@ -515,6 +519,10 @@ impl ResolverApi for KitchensinkNode {
|
||||
}
|
||||
|
||||
impl Node for KitchensinkNode {
|
||||
fn name() -> &'static str {
|
||||
"kitchensink"
|
||||
}
|
||||
|
||||
fn new(config: &Arguments) -> Self {
|
||||
let kitchensink_directory = config.directory().join(Self::BASE_DIRECTORY);
|
||||
let id = NODE_COUNT.fetch_add(1, Ordering::SeqCst);
|
||||
|
||||
@@ -15,6 +15,9 @@ pub const GENESIS_JSON: &str = include_str!("../../../genesis.json");
|
||||
|
||||
/// An abstract interface for testing nodes.
|
||||
pub trait Node: EthereumNode {
|
||||
/// The name of the node implementation.
|
||||
fn name() -> &'static str;
|
||||
|
||||
/// Create a new uninitialized instance.
|
||||
fn new(config: &Arguments) -> Self;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user