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