mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
chore(deps): upgrade Go requirement to 1.24.0 (#7456)
- Update Go version requirement to 1.24.0 - Bump build version to 1.25.0 - Upgrade golangci-lint action to latest - Use t.Chdir in tests to address linter issue Signed-off-by: Ville Vesilehto <ville@vesilehto.fi>
This commit is contained in:
@@ -113,9 +113,7 @@ func TestConfLoader(t *testing.T) {
|
||||
func TestDefaultLoader(t *testing.T) {
|
||||
// The working directory matters because defaultLoader() looks for "Corefile" in the current directory
|
||||
tmpDir := t.TempDir()
|
||||
if err := os.Chdir(tmpDir); err != nil {
|
||||
t.Fatalf("Failed to change to temp directory: %v", err)
|
||||
}
|
||||
t.Chdir(tmpDir)
|
||||
|
||||
// Test without Corefile
|
||||
input, err := defaultLoader("dns")
|
||||
|
||||
Reference in New Issue
Block a user