mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 11:57:50 +02:00
Shorten test runtime for macos tests on github actions
This commit is contained in:
parent
38712335d4
commit
23d85c81e5
@ -1692,6 +1692,11 @@ func fuzzTest(t *testing.T, tester shellTester, input string) {
|
|||||||
ops = append(ops, op)
|
ops = append(ops, op)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// MacOs on github actions is slow, so trim the fuzz tests down so they finish in time
|
||||||
|
if len(ops) > 5 && os.Getenv("GITHUB_ACTION") != "" && runtime.GOOS == "darwin" {
|
||||||
|
ops = ops[:5]
|
||||||
|
}
|
||||||
|
|
||||||
// Set up and create the devices
|
// Set up and create the devices
|
||||||
defer shared.BackupAndRestore(t)()
|
defer shared.BackupAndRestore(t)()
|
||||||
var deviceMap map[device]deviceOp = make(map[device]deviceOp)
|
var deviceMap map[device]deviceOp = make(map[device]deviceOp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user