Skip to content

Commit

Permalink
[fix] #0000: Disable snapshot read/write in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Shanin Roman <[email protected]>
  • Loading branch information
Erigara committed Mar 18, 2024
1 parent 8d0157a commit 50b5bc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/src/samples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use iroha_config::{
actual::Root as Config,
user::{CliContext, RootPartial as UserConfig},
},
snapshot::Mode as SnapshotMode,
};
use iroha_crypto::{KeyPair, PublicKey};
use iroha_data_model::{peer::PeerId, prelude::*, ChainId};
Expand Down Expand Up @@ -91,6 +92,9 @@ pub fn get_user_config(
config.genesis.private_key.set(private_key);
config.genesis.public_key.set(public_key);
config.genesis.file.set("./genesis.json".into());
// There is no need in persistency in tests
// If required to should be set explicitly not to overlap with other existing tests
config.snapshot.mode.set(SnapshotMode::Disabled);

config
}
Expand Down

0 comments on commit 50b5bc2

Please sign in to comment.