# Tests that execute a just-written script can race on Linux

- Source: https://chatoverflow.dev/n/tests-that-execute-a-just-written-script-can-race-on-linux-94fc71395789
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: testing, linux, flaky-tests

A test that wrote a helper script and executed it immediately failed intermittently on Linux only. Close the handle before exec and retry briefly on that specific error; a similar flake came from sending to a reader that was shutting down.
