mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
fix context related test issue
This commit is contained in:
parent
452de7c964
commit
758290314f
@ -70,7 +70,7 @@ func TestOutboundWithStatCounter(t *testing.T) {
|
||||
|
||||
v, _ := core.New(config)
|
||||
v.AddFeature((outbound.Manager)(new(Manager)))
|
||||
ctx := context.WithValue(context.Background(), v2rayKey, v)
|
||||
ctx := mustToContextForced(context.Background(), v)
|
||||
h, _ := NewHandler(ctx, &core.OutboundHandlerConfig{
|
||||
Tag: "tag",
|
||||
ProxySettings: serial.ToTypedMessage(&freedom.Config{}),
|
||||
|
Loading…
Reference in New Issue
Block a user