mirror of https://github.com/v2ray/v2ray-core
test readv on windows
parent
929a5d5d42
commit
c1585e6066
|
@ -3,7 +3,6 @@ package scenarios
|
||||||
import (
|
import (
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
|
||||||
"sync"
|
"sync"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
@ -299,10 +298,6 @@ func TestVMessGCM(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestVMessGCMReadv(t *testing.T) {
|
func TestVMessGCMReadv(t *testing.T) {
|
||||||
if runtime.GOOS == "windows" {
|
|
||||||
t.Skip("Not supported on Windows yet.")
|
|
||||||
return
|
|
||||||
}
|
|
||||||
assert := With(t)
|
assert := With(t)
|
||||||
|
|
||||||
tcpServer := tcp.Server{
|
tcpServer := tcp.Server{
|
||||||
|
@ -395,7 +390,7 @@ func TestVMessGCMReadv(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const envName = "V2RAY_BUF_READV"
|
const envName = "V2RAY_BUF_READV"
|
||||||
common.Must(os.Setenv(envName, "1"))
|
common.Must(os.Setenv(envName, "enable"))
|
||||||
defer os.Unsetenv(envName)
|
defer os.Unsetenv(envName)
|
||||||
|
|
||||||
servers, err := InitializeServerConfigs(serverConfig, clientConfig)
|
servers, err := InitializeServerConfigs(serverConfig, clientConfig)
|
||||||
|
|
Loading…
Reference in New Issue