Documentation
¶
Overview ¶
Package testbudget sizes the deadlines tests use to bound a hang.
A test that waits for a subprocess, an extension, or a shell command should return as soon as the awaited event happens; its deadline only decides how long a genuine hang takes to fail. Fixed 5-10 s deadlines turned into failures when many test binaries shared a machine (load average 80 on 14 cores), so waits use Wait instead. Only test code imports this package.
Index ¶
Constants ¶
const Default = 120 * time.Second
Default matches the extension-conformance connect budget, chosen for -p 12 runs on shared CI runners where builds and Node startup stall for tens of seconds.
const Env = "PIG_TEST_WAIT_TIMEOUT_SEC"
Env overrides Default with a positive whole number of seconds.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.