1
0
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:
Shelikhoo 2021-05-04 20:34:06 +01:00
parent 452de7c964
commit 758290314f
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

View File

@ -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{}),