1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-02 23:47:07 -05:00

skip DNS tests on windows

This commit is contained in:
Darien Raymond 2018-09-10 23:43:17 +02:00
parent 813fdb6235
commit f9436b3556
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -1,6 +1,7 @@
package dns_test package dns_test
import ( import (
"runtime"
"testing" "testing"
"time" "time"
@ -38,6 +39,9 @@ func (*staticHandler) ServeDNS(w dns.ResponseWriter, r *dns.Msg) {
} }
func TestUDPServer(t *testing.T) { func TestUDPServer(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("doesn't work on Windows due to miekg/dns changes.")
}
assert := With(t) assert := With(t)
port := udp.PickPort() port := udp.PickPort()
@ -102,6 +106,9 @@ func TestUDPServer(t *testing.T) {
} }
func TestPrioritizedDomain(t *testing.T) { func TestPrioritizedDomain(t *testing.T) {
if runtime.GOOS == "windows" {
t.Skip("doesn't work on Windows due to miekg/dns changes.")
}
assert := With(t) assert := With(t)
port := udp.PickPort() port := udp.PickPort()