Explorar o código

fix context related test issue

Shelikhoo %!s(int64=4) %!d(string=hai) anos
pai
achega
758290314f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/proxyman/outbound/handler_test.go

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