mirror of
https://github.com/p4gefau1t/trojan-go.git
synced 2024-04-21 12:21:34 +00:00
fix trojan test
This commit is contained in:
@@ -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{},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user