Skip to content

Commit edc1d4e

Browse files
committed
veb: skip graceful_shutdown_test on tcc-linux, and bound shutdown timeout
The test hangs indefinitely on the tcc-linux CI job, pinning the watchdog for the entire 6h timeout. Skip it under tinyc until the underlying tcc/spawn interaction is understood, and pass an explicit 5s timeout to server.shutdown() so future regressions fail fast instead of hanging CI.
1 parent 6c7c2ce commit edc1d4e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vlib/veb/tests/graceful_shutdown_test.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// vtest build: !windows // fasthttp.Server.run is not implemented on windows yet
1+
// vtest build: !windows && !tinyc // fasthttp.Server.run is not implemented on windows; the test hangs intermittently when built with tcc on linux CI
22
import net
33
import net.http
44
import time
@@ -41,7 +41,7 @@ fn (app &GracefulShutdownApp) shutdown_now() {
4141
if server == unsafe { nil } {
4242
panic('veb server was not initialized')
4343
}
44-
server.shutdown() or { panic(err) }
44+
server.shutdown(timeout: 5 * time.second) or { panic(err) }
4545
}
4646

4747
fn run_graceful_shutdown_app(mut app GracefulShutdownApp, port int) {

0 commit comments

Comments
 (0)