Fix gosec linter error

This commit is contained in:
Nikolay Edigaryev 2026-08-10 19:47:16 +01:00
parent 5f1a89a5a4
commit 00c2957a1c
1 changed files with 1 additions and 0 deletions

View File

@ -273,6 +273,7 @@ func receiveExecResult(t *testing.T, result <-chan error) error {
func waitForExecTestPID(path string) (int, error) {
deadline := time.Now().Add(execTestTimeout)
for time.Now().Before(deadline) {
//nolint:gosec // path is created under t.TempDir by the test
data, err := os.ReadFile(path)
if err == nil {
return strconv.Atoi(string(data))