fix: Fix close in pty and ptytest (#3392)

This commit is contained in:
Mathias Fredriksson
2022-08-05 21:31:54 +03:00
committed by GitHub
parent f14efd1a2b
commit b10a1b84e5
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -62,7 +62,7 @@ func create(t *testing.T, ptty pty.PTY, name string) *PTY {
_ = out.closeErr(err)
}()
t.Cleanup(func() {
_ = out.Close
_ = out.Close()
_ = ptty.Close()
<-copyDone
})