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:
@@ -151,6 +151,11 @@ func TestWalkWarnsForDuplicateOrigin(t *testing.T) {
|
||||
|
||||
func TestWalkKeepsFirstMatchingFileForOrigin(t *testing.T) {
|
||||
dir := t.TempDir()
|
||||
// Match Walk: it stores paths after EvalSymlinks.
|
||||
dir, err := filepath.EvalSymlinks(dir)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
zone := filepath.Join(dir, "example.org.zone")
|
||||
backup := filepath.Join(dir, "example.org.zone.bak-20260528")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user