mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-14 19:21:46 +03:00
Make sure to close fake server connection in tests
This commit is contained in:
parent
8f7fdcbdca
commit
6749b2ace8
@ -31,6 +31,7 @@ func Test_portAvailable(t *testing.T) {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
conn.Close()
|
conn.Close()
|
||||||
}
|
}
|
||||||
|
serv.Close()
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user