fixup! Add tests for blob pruning flags
This commit is contained in:
parent
d3a09af7f7
commit
c6dfa7a1ac
@ -1364,7 +1364,7 @@ fn epochs_per_blob_prune_on_startup_five() {
|
|||||||
CommandLineTest::new()
|
CommandLineTest::new()
|
||||||
.flag("epochs-per-blob-prune", Some("5"))
|
.flag("epochs-per-blob-prune", Some("5"))
|
||||||
.run_with_zero_port()
|
.run_with_zero_port()
|
||||||
.with_config(|config| assert!(!config.store.epochs_per_blob_prune == 5));
|
.with_config(|config| assert!(config.store.epochs_per_blob_prune == 5));
|
||||||
}
|
}
|
||||||
#[test]
|
#[test]
|
||||||
fn blob_prune_margin_epochs_default() {
|
fn blob_prune_margin_epochs_default() {
|
||||||
@ -1377,7 +1377,7 @@ fn blob_prune_margin_epochs_on_startup_ten() {
|
|||||||
CommandLineTest::new()
|
CommandLineTest::new()
|
||||||
.flag("blob-prune-margin-epochs", Some("10"))
|
.flag("blob-prune-margin-epochs", Some("10"))
|
||||||
.run_with_zero_port()
|
.run_with_zero_port()
|
||||||
.with_config(|config| assert!(!config.store.blob_prune_margin_epochs == 10));
|
.with_config(|config| assert!(config.store.blob_prune_margin_epochs == 10));
|
||||||
}
|
}
|
||||||
#[test]
|
#[test]
|
||||||
fn reconstruct_historic_states_flag() {
|
fn reconstruct_historic_states_flag() {
|
||||||
|
Loading…
Reference in New Issue
Block a user