Skip to content

Commit

Permalink
nit: remove tmp.json output after test ran
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrostr committed Jan 10, 2025
1 parent 96c6d36 commit f77949e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/address.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ pub async fn generate_custom_sol_address(
#[cfg(test)]
mod tests {

// toil alert, remove tmp.json after manual check
#[test]
fn test_write_bytes() {
let contents = [255u8; 64];
Expand All @@ -60,5 +59,9 @@ mod tests {
serde_json::to_string(&Vec::from(&contents)).unwrap(),
)
.unwrap();

if std::fs::metadata("tmp.json").is_ok() {
std::fs::remove_file("tmp.json").unwrap();
}
}
}

0 comments on commit f77949e

Please sign in to comment.