mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-11-17 18:06:15 -05:00
fix test
This commit is contained in:
parent
ab4f245313
commit
c277c6de54
@ -7,8 +7,6 @@ import (
|
|||||||
"v2ray.com/core/app"
|
"v2ray.com/core/app"
|
||||||
"v2ray.com/core/app/dispatcher"
|
"v2ray.com/core/app/dispatcher"
|
||||||
_ "v2ray.com/core/app/dispatcher/impl"
|
_ "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"
|
||||||
_ "v2ray.com/core/app/proxyman/outbound"
|
_ "v2ray.com/core/app/proxyman/outbound"
|
||||||
. "v2ray.com/core/app/router"
|
. "v2ray.com/core/app/router"
|
||||||
@ -33,7 +31,6 @@ func TestSimpleRouter(t *testing.T) {
|
|||||||
|
|
||||||
space := app.NewSpace()
|
space := app.NewSpace()
|
||||||
ctx := app.ContextWithSpace(context.Background(), space)
|
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(dispatcher.Config)), IsNil)
|
||||||
assert(app.AddApplicationToSpace(ctx, new(proxyman.OutboundConfig)), IsNil)
|
assert(app.AddApplicationToSpace(ctx, new(proxyman.OutboundConfig)), IsNil)
|
||||||
assert(app.AddApplicationToSpace(ctx, config), IsNil)
|
assert(app.AddApplicationToSpace(ctx, config), IsNil)
|
||||||
|
Loading…
Reference in New Issue
Block a user