Skip to main content

set_test_transaction_timeout

Function set_test_transaction_timeout 

Source
pub fn set_test_transaction_timeout(db: &Database)
Expand description

Sets a default transaction timeout on db for use in tests.

Production code intentionally does not bound transactions here; that is a separate product decision. Tests call this so that a FoundationDB server that becomes unresponsive (for example under heavy parallel CI load) fails the affected operation promptly instead of blocking forever.