mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix: Fix close in pty and ptytest (#3392)
This commit is contained in:
committed by
GitHub
parent
f14efd1a2b
commit
b10a1b84e5
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user