Skip to content

Commit 9c58a54

Browse files
skarimCopilot
andcommitted
close pipe read end in test to avoid FD leak
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 220ed72 commit 9c58a54

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/submit_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,7 @@ func TestSubmit_PreflightCheck_404_Interactive_UserDeclinesAborts(t *testing.T)
901901
// which is treated as a decline — same as user saying "no".
902902
inR, inW, _ := os.Pipe()
903903
inW.Close()
904+
defer inR.Close()
904905

905906
cfg, _, errR := config.NewTestConfig()
906907
cfg.In = inR

0 commit comments

Comments
 (0)