aboutsummaryrefslogtreecommitdiffstats
path: root/atuin-client/src/record/sync.rs
diff options
context:
space:
mode:
authorEric Long <i@hack3r.moe>2024-02-12 17:25:06 +0800
committerGitHub <noreply@github.com>2024-02-12 09:25:06 +0000
commit5a805dc22c99050db0a54f35e660516c57fa4b94 (patch)
treeef1479f47f6c0099e0094a73b9bf447541500627 /atuin-client/src/record/sync.rs
parentchore(release): prepare for release v18.0.1 (#1706) (diff)
downloadatuin-5a805dc22c99050db0a54f35e660516c57fa4b94.zip
feat: use ATUIN_TEST_SQLITE_STORE_TIMEOUT to specify test timeout of SQLite store (#1703)
Low-end devices like RISC-V SBCs are sometimes too slow to initialize SQLite in 0.1s. Option to specify a higher value allows check to pass on such devices with relaxed restrictions.
Diffstat (limited to 'atuin-client/src/record/sync.rs')
-rw-r--r--atuin-client/src/record/sync.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/atuin-client/src/record/sync.rs b/atuin-client/src/record/sync.rs
index e3644371..02c53d44 100644
--- a/atuin-client/src/record/sync.rs
+++ b/atuin-client/src/record/sync.rs
@@ -324,7 +324,7 @@ mod tests {
use crate::record::{
encryption::PASETO_V4,
- sqlite_store::SqliteStore,
+ sqlite_store::{test_sqlite_store_timeout, SqliteStore},
store::Store,
sync::{self, Operation},
};
@@ -351,10 +351,10 @@ mod tests {
local_records: Vec<Record<EncryptedData>>,
remote_records: Vec<Record<EncryptedData>>,
) -> (SqliteStore, Vec<Diff>) {
- let local_store = SqliteStore::new(":memory:", 0.1)
+ let local_store = SqliteStore::new(":memory:", test_sqlite_store_timeout())
.await
.expect("failed to open in memory sqlite");
- let remote_store = SqliteStore::new(":memory:", 0.1)
+ let remote_store = SqliteStore::new(":memory:", test_sqlite_store_timeout())
.await
.expect("failed to open in memory sqlite"); // "remote"