mirror of
https://github.com/coredns/coredns.git
synced 2026-07-22 07:30:13 -04:00
ci: run plugin tests on Windows (#8314)
Plugin package tests previously ran only on Linux, so Windows- specific failures were never caught. Run them in CI and make the affected tests portable across platforms. Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"errors"
|
||||
"net"
|
||||
"path"
|
||||
"runtime"
|
||||
"slices"
|
||||
"testing"
|
||||
|
||||
@@ -99,6 +100,10 @@ func (m testServiceClient) Query(_ctx context.Context, _in *pb.DnsPacket, _opts
|
||||
}
|
||||
|
||||
func TestProxyUnix(t *testing.T) {
|
||||
if runtime.GOOS == "windows" {
|
||||
t.Skip("unix domain sockets are not supported on windows")
|
||||
}
|
||||
|
||||
tdir := t.TempDir()
|
||||
|
||||
fd := path.Join(tdir, "test.grpc")
|
||||
|
||||
Reference in New Issue
Block a user