Skip to content

Commit

Permalink
Simplify test storage code
Browse files Browse the repository at this point in the history
  • Loading branch information
teor2345 authored Dec 12, 2023
1 parent f7cb32a commit ed19740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zebra-scan/src/tests/vectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ fn scanning_fake_blocks_store_key_and_results() -> Result<()> {
zcash_client_backend::encoding::encode_extended_full_viewing_key("zxviews", &extfvk);

// Create a database
let mut s = crate::storage::Storage::new(&Config::ephemeral(), Network::Mainnet, false);
let mut s = crate::storage::tests::new_test_storage(Network::Mainnet);

Check failure on line 160 in zebra-scan/src/tests/vectors.rs

View workflow job for this annotation

GitHub Actions / Check Cargo.lock is up to date

failed to resolve: could not find `tests` in `storage`

Check failure on line 160 in zebra-scan/src/tests/vectors.rs

View workflow job for this annotation

GitHub Actions / Test stable on ubuntu-latest

failed to resolve: could not find `tests` in `storage`

Check failure on line 160 in zebra-scan/src/tests/vectors.rs

View workflow job for this annotation

GitHub Actions / Test beta on ubuntu-latest

failed to resolve: could not find `tests` in `storage`

Check failure on line 160 in zebra-scan/src/tests/vectors.rs

View workflow job for this annotation

GitHub Actions / Test stable on macos-latest

failed to resolve: could not find `tests` in `storage`

Check failure on line 160 in zebra-scan/src/tests/vectors.rs

View workflow job for this annotation

GitHub Actions / Build zebra-scan crate

failed to resolve: could not find `tests` in `storage`

Check failure on line 160 in zebra-scan/src/tests/vectors.rs

View workflow job for this annotation

GitHub Actions / Clippy (stable) Results

failed to resolve: could not find `tests` in `storage`

error[E0433]: failed to resolve: could not find `tests` in `storage` --> zebra-scan/src/tests/vectors.rs:160:33 | 160 | let mut s = crate::storage::tests::new_test_storage(Network::Mainnet); | ^^^^^ could not find `tests` in `storage` | help: consider importing this module | 3 + use crate::storage::db::tests; | help: if you import `tests`, refer to it directly | 160 - let mut s = crate::storage::tests::new_test_storage(Network::Mainnet); 160 + let mut s = tests::new_test_storage(Network::Mainnet); |

// Insert the generated key to the database
s.add_sapling_key(&key_to_be_stored, None);
Expand Down

0 comments on commit ed19740

Please sign in to comment.