fix trojan test

This commit is contained in:
Page Fault
2020-07-11 04:32:53 +00:00
parent acaa0fa478
commit 7a6ca3fb49
+2
View File
@@ -75,9 +75,11 @@ func TestTrojan(t *testing.T) {
redir: redirector.NewRedirector(ctx),
}
go s.acceptLoop()
ctx, cancel = context.WithCancel(ctx)
c := &Client{
underlay: tcpClient,
ctx: ctx,
cancel: cancel,
user: &MockUser{},
}