mirror of
https://github.com/pezkuwichain/revive-differential-tests.git
synced 2026-04-25 23:18:02 +00:00
Remoe all references to leader and follower
This commit is contained in:
@@ -855,11 +855,11 @@ impl Drop for GethNode {
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
fn test_config() -> ExecutionContext {
|
||||
ExecutionContext::default()
|
||||
fn test_config() -> TestExecutionContext {
|
||||
TestExecutionContext::default()
|
||||
}
|
||||
|
||||
fn new_node() -> (ExecutionContext, GethNode) {
|
||||
fn new_node() -> (TestExecutionContext, GethNode) {
|
||||
let context = test_config();
|
||||
let mut node = GethNode::new(&context);
|
||||
node.init(context.genesis_configuration.genesis().unwrap().clone())
|
||||
|
||||
@@ -1300,13 +1300,13 @@ mod tests {
|
||||
use super::*;
|
||||
use crate::Node;
|
||||
|
||||
fn test_config() -> ExecutionContext {
|
||||
let mut context = ExecutionContext::default();
|
||||
fn test_config() -> TestExecutionContext {
|
||||
let mut context = TestExecutionContext::default();
|
||||
context.kitchensink_configuration.use_kitchensink = true;
|
||||
context
|
||||
}
|
||||
|
||||
fn new_node() -> (ExecutionContext, SubstrateNode) {
|
||||
fn new_node() -> (TestExecutionContext, SubstrateNode) {
|
||||
// Note: When we run the tests in the CI we found that if they're all
|
||||
// run in parallel then the CI is unable to start all of the nodes in
|
||||
// time and their start up times-out. Therefore, we want all of the
|
||||
@@ -1340,7 +1340,7 @@ mod tests {
|
||||
|
||||
/// A shared node that multiple tests can use. It starts up once.
|
||||
fn shared_node() -> &'static SubstrateNode {
|
||||
static NODE: LazyLock<(ExecutionContext, SubstrateNode)> = LazyLock::new(|| {
|
||||
static NODE: LazyLock<(TestExecutionContext, SubstrateNode)> = LazyLock::new(|| {
|
||||
let (context, node) = new_node();
|
||||
(context, node)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user