diff --git a/core/src/kvs/tests/timestamp_to_versionstamp.rs b/core/src/kvs/tests/timestamp_to_versionstamp.rs index c896e902..e517c812 100644 --- a/core/src/kvs/tests/timestamp_to_versionstamp.rs +++ b/core/src/kvs/tests/timestamp_to_versionstamp.rs @@ -1,3 +1,5 @@ +use crate::key; + // Timestamp to versionstamp tests // This translation mechanism is currently used by the garbage collector to determine which change feed entries to delete. // diff --git a/core/src/options.rs b/core/src/options.rs index 2c4ad193..890256d4 100644 --- a/core/src/options.rs +++ b/core/src/options.rs @@ -19,7 +19,7 @@ impl Default for EngineOptions { Self { new_live_queries_per_transaction: 100, live_query_catchup_size: 1000, - tick_interval: Duration::from_secs(1), + tick_interval: Duration::from_secs(10), } } } diff --git a/tests/cli_integration.rs b/tests/cli_integration.rs index b1dea1fa..0530c163 100644 --- a/tests/cli_integration.rs +++ b/tests/cli_integration.rs @@ -18,8 +18,9 @@ mod cli_integration { use super::common::{self, StartServerArguments, PASS, USER}; - const ONE_SEC: Duration = Duration::new(1, 0); - const TWO_SECS: Duration = Duration::new(2, 0); + /// This depends on the interval configuration that we cannot yet inject + const ONE_PERIOD: Duration = Duration::new(10, 0); + const TWO_PERIODS: Duration = Duration::new(20, 0); #[test] fn version_command() { @@ -617,7 +618,7 @@ mod cli_integration { auth: false, tls: false, wait_is_ready: true, - tick_interval: ONE_SEC, + tick_interval: ONE_PERIOD, ..Default::default() }) .await @@ -719,7 +720,7 @@ mod cli_integration { } }; - sleep(TWO_SECS).await; + sleep(TWO_PERIODS).await; info!("* Show changes after GC"); {