fixup! Add tests for blob pruning flags

This commit is contained in:
Emilia Hane 2023-02-10 21:15:57 +01:00
parent d3a09af7f7
commit c6dfa7a1ac
No known key found for this signature in database
GPG Key ID: E73394F9C09206FA

View File

@ -1364,7 +1364,7 @@ fn epochs_per_blob_prune_on_startup_five() {
CommandLineTest::new()
.flag("epochs-per-blob-prune", Some("5"))
.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]
fn blob_prune_margin_epochs_default() {
@ -1377,7 +1377,7 @@ fn blob_prune_margin_epochs_on_startup_ten() {
CommandLineTest::new()
.flag("blob-prune-margin-epochs", Some("10"))
.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]
fn reconstruct_historic_states_flag() {