Skip to content

Commit

Permalink
tweak: apply review suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: ljedrz <[email protected]>
  • Loading branch information
ljedrz committed May 3, 2022
1 parent a74ce42 commit 7375d88
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ features = [
"compression-flate2"
]

[dev-dependencies.snarkos]
path = "."
features = [ "test" ] # a workaround to use the `test` feature in tests by default

[dependencies.snarkos-environment]
path = "./environment"
version = "2.0.2"
Expand Down Expand Up @@ -120,6 +116,10 @@ optional = true
[dev-dependencies.rusty-hook]
version = "0.11"

[dev-dependencies.snarkos]
path = "."
features = [ "test" ] # a workaround to use the `test` feature in tests by default

[profile.release]
opt-level = 3
lto = "thin"
Expand Down
2 changes: 1 addition & 1 deletion storage/src/state/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ fn temp_dir() -> std::path::PathBuf {
}

/// Returns 3 test blocks.
// Note: the `blocks_3` file was generated on a testnet2 storage using `LedgerState::dump_blocks`.
fn test_blocks_3() -> Vec<Block<CurrentNetwork>> {
let mut test_block_path = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
test_block_path.push("benches");
// note: the `blocks_3` file was generated on a testnet2 storage using `LedgerState::dump_blocks`.
test_block_path.push("blocks_3");

let test_blocks = fs::read(test_block_path).unwrap_or_else(|_| panic!("Missing the test blocks file"));
Expand Down

0 comments on commit 7375d88

Please sign in to comment.