From 758290314ff9da7da4b014fa6b0a32b8b945a5e4 Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Tue, 4 May 2021 20:34:06 +0100 Subject: [PATCH] fix context related test issue --- app/proxyman/outbound/handler_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/proxyman/outbound/handler_test.go b/app/proxyman/outbound/handler_test.go index 53c0656d8..2fc723e91 100644 --- a/app/proxyman/outbound/handler_test.go +++ b/app/proxyman/outbound/handler_test.go @@ -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{}),