mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 10:22:38 +00:00
Fix broken Nethermind integration tests (#4836)
## Issue Addressed CI is currently blocked by persistently failing integration tests. ## Proposed Changes Use latest Nethermind release and apply the appropriate fixes as there have been breaking changes. Also increase the timeout since I had some local timeouts. Co-authored-by: Michael Sproul <michael@sigmaprime.io> Co-authored-by: antondlr <anton@delaruelle.net> Co-authored-by: Jimmy Chen <jchen.tc@gmail.com>
This commit is contained in:
@@ -3,7 +3,7 @@ use crate::execution_engine::GenericExecutionEngine;
|
||||
use crate::genesis_json::geth_genesis_json;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::process::{Child, Command, Output};
|
||||
use std::{env, fs::File};
|
||||
use std::{env, fs};
|
||||
use tempfile::TempDir;
|
||||
use unused_port::unused_tcp4_port;
|
||||
|
||||
@@ -36,6 +36,13 @@ pub fn build(execution_clients_dir: &Path) {
|
||||
});
|
||||
}
|
||||
|
||||
pub fn clean(execution_clients_dir: &Path) {
|
||||
let repo_dir = execution_clients_dir.join("go-ethereum");
|
||||
if let Err(e) = fs::remove_dir_all(repo_dir) {
|
||||
eprintln!("Error while deleting folder: {}", e);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Geth-specific Implementation for GenericExecutionEngine
|
||||
*/
|
||||
@@ -60,7 +67,7 @@ impl GenericExecutionEngine for GethEngine {
|
||||
let datadir = TempDir::new().unwrap();
|
||||
|
||||
let genesis_json_path = datadir.path().join("genesis.json");
|
||||
let mut file = File::create(&genesis_json_path).unwrap();
|
||||
let mut file = fs::File::create(&genesis_json_path).unwrap();
|
||||
let json = geth_genesis_json();
|
||||
serde_json::to_writer(&mut file, &json).unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user