atuin/crates
Jax Young 90e7d28173
test: add env ATUIN_TEST_LOCAL_TIMEOUT to control test timeout of SQLite (#2337)
* test: add env ATUIN_TEST_LOCAL_TIMEOUT to control test timeout of SQLite

This make it possible to control the timeout of SQLite operations in
test. And ATUIN_TEST_LOCAL_TIMEOUT defaults to the default local_timeout,
which is actually used in the client. Instead of a small timeout (0.1),
this change makes the test less likely to fail and better imitate the
default behavior.

SQLite operation timeout was first introduced from #1590, including
connection and store timeout. The env ATUIN_TEST_SQLITE_STORE_TIMEOUT
which added by #1703 only specify the store timeout. This commit doesn't
deprecate ATUIN_TEST_SQLITE_STORE_TIMEOUT, but control it by setting its
default to the new env ATUIN_TEST_LOCAL_TIMEOUT.

* test!: replace ATUIN_TEST_SQLITE_STORE_TIMEOUT with ATUIN_TEST_LOCAL_TIMEOUT

This deprecate ATUIN_TEST_SQLITE_STORE_TIMEOUT for simplicity as the new
env ATUIN_TEST_LOCAL_TIMEOUT can control both connection and store
timeout of SQLite in test. Details see 4d88611.

Revert: #1703.
2024-08-05 14:22:40 +01:00
..
atuin chore(deps): bump env_logger from 0.11.3 to 0.11.5 (#2341) 2024-08-05 14:11:15 +01:00
atuin-client test: add env ATUIN_TEST_LOCAL_TIMEOUT to control test timeout of SQLite (#2337) 2024-08-05 14:22:40 +01:00
atuin-common chore(deps): update to sqlx 0.8 (#2343) 2024-08-05 14:11:01 +01:00
atuin-daemon fix: windows build error (#2321) 2024-07-29 15:10:49 +01:00
atuin-dotfiles test: add env ATUIN_TEST_LOCAL_TIMEOUT to control test timeout of SQLite (#2337) 2024-08-05 14:22:40 +01:00
atuin-history chore(release): prepare for release v18.4.0-beta.3 (#2305) 2024-07-23 13:38:41 +01:00
atuin-server chore(release): prepare for release v18.4.0-beta.3 (#2305) 2024-07-23 13:38:41 +01:00
atuin-server-database chore(release): prepare for release v18.4.0-beta.3 (#2305) 2024-07-23 13:38:41 +01:00
atuin-server-postgres chore(release): prepare for release v18.4.0-beta.3 (#2305) 2024-07-23 13:38:41 +01:00