fix(run): run unattended short also on Windows (#242)
We already have a short run unattended on macOS and we wanna do the same for Windows. See https://github.com/ooni/probe/issues/1377.
This commit is contained in:
parent
2ef5fb503a
commit
f5461323db
|
@ -76,10 +76,11 @@ func init() {
|
||||||
|
|
||||||
unattendedCmd := cmd.Command("unattended", "")
|
unattendedCmd := cmd.Command("unattended", "")
|
||||||
unattendedCmd.Action(func(_ *kingpin.ParseContext) error {
|
unattendedCmd.Action(func(_ *kingpin.ParseContext) error {
|
||||||
if runtime.GOOS == "darwin" {
|
|
||||||
// Until we have enabled the check-in API we're called every
|
// Until we have enabled the check-in API we're called every
|
||||||
// hour on darwin and we need to self throttle.
|
// hour on darwin and we need to self throttle.
|
||||||
// TODO(bassosimone): switch to check-in and remove this hack.
|
// TODO(bassosimone): switch to check-in and remove this hack.
|
||||||
|
switch runtime.GOOS {
|
||||||
|
case "darwin", "windows":
|
||||||
const veryFew = 10
|
const veryFew = 10
|
||||||
probe.Config().Nettests.WebsitesURLLimit = veryFew
|
probe.Config().Nettests.WebsitesURLLimit = veryFew
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user