Adds Close Function

This commit is contained in:
The Surgeon
2020-07-11 15:43:19 -05:00
parent ee23be105f
commit 2159d1c959
2 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,8 @@ func server(t *testing.T, prepare chan<- int) {
if err != nil {
t.Fatal(err)
}
defer l.Close()
prepare <- 1
for {
@ -55,6 +57,7 @@ func client(t *testing.T) {
if err != nil {
t.Fatal(err)
}
defer conn.Close()
err = conn.Cmd("TEST COMMAND")
if err != nil {