tun2: cleanup server when done with it
This commit is contained in:
parent
2a06070bec
commit
0b46f035c6
|
@ -76,6 +76,7 @@ func TestBackendAuthV1(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
defer s.Close()
|
||||||
|
|
||||||
st.AddRoute(domain, user)
|
st.AddRoute(domain, user)
|
||||||
st.AddToken(token, user, []string{"connect"})
|
st.AddToken(token, user, []string{"connect"})
|
||||||
|
@ -167,6 +168,7 @@ func TestBackendRouting(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
defer s.Close()
|
||||||
|
|
||||||
l, err := net.Listen("tcp", "127.0.0.1:0")
|
l, err := net.Listen("tcp", "127.0.0.1:0")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue