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
1 changed files with 1 additions and 1 deletions

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