Skip to content

Commit

Permalink
chore: move dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
dutterbutter committed Dec 18, 2024
1 parent a9fcdf1 commit ab9f97b
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 22 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@ tracing-subscriber = { version = "0.3", features = [
"local-time",
] }

#########################
# Test dependencies #
#########################
httptest = "0.15.4"
tempdir = "0.3.7"
maplit = "1.0.2"
zksync-web3-rs = "0.1.1"
ethers = { version = "2.0.4", features = ["rustls"] }
test-case = "3.3.1"

#########################
# Local dependencies #
#########################
Expand Down
2 changes: 1 addition & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ tower-http.workspace = true
flate2.workspace = true

[dev-dependencies]
tempfile = "3"
tempdir.workspace = true
7 changes: 3 additions & 4 deletions crates/cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,8 @@ mod tests {
env,
net::{IpAddr, Ipv4Addr},
};
use serde_json::Value;
use tempdir::TempDir;

#[test]
fn can_parse_host() {
Expand Down Expand Up @@ -668,10 +670,7 @@ mod tests {

#[tokio::test]
async fn test_dump_state() -> anyhow::Result<()> {
use serde_json::Value;
use tempfile::tempdir;

let temp_dir = tempdir()?;
let temp_dir = TempDir::new("state-test").expect("failed creating temporary dir");
let dump_path = temp_dir.path().join("state.json");

let config = anvil_zksync_config::TestNodeConfig {
Expand Down
12 changes: 6 additions & 6 deletions crates/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ flate2.workspace = true
thiserror.workspace = true

[dev-dependencies]
httptest = "0.15.4"
tempdir = "0.3.7"
maplit = "1.0.2"
zksync-web3-rs = "0.1.1"
ethers = { version = "2.0.4", features = ["rustls"] }
test-case = "3.3.1"
maplit.workspace = true
ethers.workspace = true
httptest.workspace = true
tempdir.workspace = true
zksync-web3-rs.workspace = true
test-case.workspace = true
21 changes: 20 additions & 1 deletion e2e-tests-rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions e2e-tests-rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ reqwest-middleware = { version = "0.4", features = ["json"] }
serde_json = "1"
tower = "0.5"
http = "1.1.0"
anvil_zksync_core = { path = "../crates/core" }
tempdir = "0.3.7"

[dev-dependencies]
serde_json = "1.0"
anvil_zksync_core = { path = "../crates/core" }
tempfile = "3"

[workspace] # ignore higher-level workspace
8 changes: 4 additions & 4 deletions e2e-tests-rust/tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const OTHER_ORIGIN: HeaderValue = HeaderValue::from_static("http://other.origin"
const ANY_ORIGIN: HeaderValue = HeaderValue::from_static("*");

use anvil_zksync_core::node::VersionedState;
use std::{ fs, convert::identity, thread::sleep, time::Duration};
use tempfile::tempdir;
use std::{ fs, convert::identity, thread::sleep, time::Duration };
use tempdir::TempDir;

#[tokio::test]
async fn interval_sealing_finalization() -> anyhow::Result<()> {
Expand Down Expand Up @@ -517,7 +517,7 @@ async fn transactions_have_index() -> anyhow::Result<()> {

#[tokio::test]
async fn dump_state_on_run() -> anyhow::Result<()> {
let temp_dir = tempdir()?;
let temp_dir = TempDir::new("state-test").expect("failed creating temporary dir");
let dump_path = temp_dir.path().join("state_dump.json");

let dump_path_clone = dump_path.clone();
Expand Down Expand Up @@ -569,7 +569,7 @@ async fn dump_state_on_run() -> anyhow::Result<()> {

#[tokio::test]
async fn dump_state_on_fork() -> anyhow::Result<()> {
let temp_dir = tempdir()?;
let temp_dir = TempDir::new("state-fork-test").expect("failed creating temporary dir");
let dump_path = temp_dir.path().join("state_dump_fork.json");

let dump_path_clone = dump_path.clone();
Expand Down

0 comments on commit ab9f97b

Please sign in to comment.