diff --git a/proxy/socks/protocol/socks_fuzz_test.go b/proxy/socks/protocol/socks_fuzz_test.go deleted file mode 100644 index c2a730399..000000000 --- a/proxy/socks/protocol/socks_fuzz_test.go +++ /dev/null @@ -1,35 +0,0 @@ -package protocol - -import ( - "testing" - - "github.com/v2ray/v2ray-core/testing/fuzzing" -) - -const ( - Iterations = int(500000) -) - -func TestReadAuthentication(t *testing.T) { - for i := 0; i < Iterations; i++ { - ReadAuthentication(fuzzing.RandomReader()) - } -} - -func TestReadUserPassRequest(t *testing.T) { - for i := 0; i < Iterations; i++ { - ReadUserPassRequest(fuzzing.RandomReader()) - } -} - -func TestReadRequest(t *testing.T) { - for i := 0; i < Iterations; i++ { - ReadRequest(fuzzing.RandomReader()) - } -} - -func TestReadUDPRequest(t *testing.T) { - for i := 0; i < Iterations; i++ { - ReadUDPRequest(fuzzing.RandomBytes()) - } -} diff --git a/proxy/vmess/protocol/vmess_fuzz_test.go b/proxy/vmess/protocol/vmess_fuzz_test.go deleted file mode 100644 index 4acad4b66..000000000 --- a/proxy/vmess/protocol/vmess_fuzz_test.go +++ /dev/null @@ -1,15 +0,0 @@ -package protocol - -import ( - "testing" - - "github.com/v2ray/v2ray-core/proxy/vmess/protocol/user/testing/mocks" - "github.com/v2ray/v2ray-core/testing/fuzzing" -) - -func TestVMessRequestReader(t *testing.T) { - reader := NewVMessRequestReader(&mocks.StaticUserSet{}) - for i := 0; i < 1000000; i++ { - reader.Read(fuzzing.RandomReader()) - } -}