Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1321e8f401 |
+1
-1
@@ -436,7 +436,7 @@ func TestGPGTimeoutWhenChildHoldsOutput(t *testing.T) {
|
||||
t.Setenv("PATH", fakeGPGPath(t,
|
||||
"#!/bin/sh\nsleep 3 &\necho $! >'"+pidFile+"'\nwait\n"))
|
||||
t.Cleanup(func() {
|
||||
pid, err := os.ReadFile(pidFile) //nolint:gosec // G304: path inside t.TempDir()
|
||||
pid, err := os.ReadFile(pidFile)
|
||||
require.NoError(t, err)
|
||||
|
||||
n, err := strconv.Atoi(strings.TrimSpace(string(pid)))
|
||||
|
||||
Reference in New Issue
Block a user