tun2: cleanup server when done with it

This commit is contained in:
Cadey Ratio 2017-10-04 01:00:42 -07:00
parent 2a06070bec
commit 0b46f035c6
No known key found for this signature in database
GPG Key ID: D607EE27C2E7F89A
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,7 @@ func TestBackendAuthV1(t *testing.T) {
if err != nil {
t.Fatal(err)
}
defer s.Close()
st.AddRoute(domain, user)
st.AddToken(token, user, []string{"connect"})
@ -167,6 +168,7 @@ func TestBackendRouting(t *testing.T) {
if err != nil {
t.Fatal(err)
}
defer s.Close()
l, err := net.Listen("tcp", "127.0.0.1:0")
if err != nil {