-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
952fba0
commit 70532da
Showing
7 changed files
with
238 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ mod multicall; | |
mod script; | ||
mod show_config; | ||
mod tx_status; | ||
mod verify; | ||
mod verification; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
use std::{fs::File, io::Write}; | ||
|
||
use anyhow::Result; | ||
use tempfile::TempDir; | ||
|
||
use crate::helpers::fixtures::copy_directory_to_tempdir; | ||
use configuration::CONFIG_FILENAME; | ||
|
||
pub fn copy_directory_to_tempdir_with_config( | ||
src_dir: String, | ||
cast_config_content: String, | ||
) -> Result<TempDir> { | ||
let temp_dir = copy_directory_to_tempdir(src_dir); | ||
|
||
let mut file = File::create(temp_dir.path().join(CONFIG_FILENAME)) | ||
.expect("Unable to create a temporary accounts file"); | ||
|
||
file.write_all(cast_config_content.as_bytes()) | ||
.expect("Unable to write test data to a temporary file"); | ||
|
||
file.flush().expect("Unable to flush a temporary file"); | ||
|
||
Ok(temp_dir) | ||
} |
1 change: 1 addition & 0 deletions
1
crates/sncast/tests/e2e/verify/mod.rs → crates/sncast/tests/e2e/verification/mod.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
mod helpers; | ||
mod voyager; | ||
mod walnut; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.