mirror of https://github.com/v2ray/v2ray-core
fix test
parent
ab4f245313
commit
c277c6de54
|
@ -7,8 +7,6 @@ import (
|
|||
"v2ray.com/core/app"
|
||||
"v2ray.com/core/app/dispatcher"
|
||||
_ "v2ray.com/core/app/dispatcher/impl"
|
||||
"v2ray.com/core/app/dns"
|
||||
_ "v2ray.com/core/app/dns/server"
|
||||
"v2ray.com/core/app/proxyman"
|
||||
_ "v2ray.com/core/app/proxyman/outbound"
|
||||
. "v2ray.com/core/app/router"
|
||||
|
@ -33,7 +31,6 @@ func TestSimpleRouter(t *testing.T) {
|
|||
|
||||
space := app.NewSpace()
|
||||
ctx := app.ContextWithSpace(context.Background(), space)
|
||||
assert(app.AddApplicationToSpace(ctx, new(dns.Config)), IsNil)
|
||||
assert(app.AddApplicationToSpace(ctx, new(dispatcher.Config)), IsNil)
|
||||
assert(app.AddApplicationToSpace(ctx, new(proxyman.OutboundConfig)), IsNil)
|
||||
assert(app.AddApplicationToSpace(ctx, config), IsNil)
|
||||
|
|
Loading…
Reference in New Issue