Fix tests

This commit is contained in:
世界
2024-11-17 16:59:25 +08:00
parent 9f76087503
commit 697c81f097
29 changed files with 334 additions and 279 deletions

View File

@@ -1,5 +1,6 @@
package main
/*
import (
"context"
"net/netip"
@@ -16,11 +17,11 @@ import (
func TestV2RayAPI(t *testing.T) {
i := startInstance(t, option.Options{
LegacyInbounds: []option.LegacyInbound{
Inbounds: []option.Inbound{
{
Type: C.TypeMixed,
Tag: "in",
MixedOptions: option.HTTPMixedInboundOptions{
Options: &option.HTTPMixedInboundOptions{
ListenOptions: option.ListenOptions{
Listen: common.Ptr(badoption.Addr(netip.IPv4Unspecified())),
ListenPort: clientPort,
@@ -28,7 +29,7 @@ func TestV2RayAPI(t *testing.T) {
},
},
},
LegacyOutbounds: []option.LegacyOutbound{
Outbounds: []option.Outbound{
{
Type: C.TypeDirect,
Tag: "out",
@@ -56,3 +57,4 @@ func TestV2RayAPI(t *testing.T) {
require.Equal(t, count, stat.Value)
}
}
*/