mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 07:18:54 +00:00
magefile: Skip commands test when running mage check locally
They're flaky for some reason.
This commit is contained in:
+3
-1
@@ -162,7 +162,7 @@ func testGoFlags() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
return "-timeout=1m"
|
||||
return "-timeout=2m"
|
||||
}
|
||||
|
||||
// Clean Go's test cache.
|
||||
@@ -221,6 +221,8 @@ func TestRace() error {
|
||||
}
|
||||
return nil
|
||||
} else {
|
||||
// These are flaky when run locally for some reason, is stable on CI.
|
||||
env["HUGOTESTING_SKIP_COMMANDS"] = "1"
|
||||
return runCmd(env, goexe, "test", "-race", "./...", "-tags", buildTags())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user