Skip to main content

TEST_TRANSACTION_TIMEOUT_MS

Constant TEST_TRANSACTION_TIMEOUT_MS 

Source
pub(crate) const TEST_TRANSACTION_TIMEOUT_MS: i32 = 60_000;
Expand description

Default transaction timeout, in milliseconds, applied to a Database in tests via set_test_transaction_timeout.

Chosen well below the test harness’s 180s termination so that an unavailable or stalled server surfaces a transaction_timed_out error the test can report and retry on, rather than hanging until the harness kills the process.