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.Action(func(_ *kingpin.ParseContext) error {
|
||||
if runtime.GOOS == "darwin" {
|
||||
// Until we have enabled the check-in API we're called every
|
||||
// hour on darwin and we need to self throttle.
|
||||
// TODO(bassosimone): switch to check-in and remove this hack.
|
||||
// Until we have enabled the check-in API we're called every
|
||||
// hour on darwin and we need to self throttle.
|
||||
// TODO(bassosimone): switch to check-in and remove this hack.
|
||||
switch runtime.GOOS {
|
||||
case "darwin", "windows":
|
||||
const veryFew = 10
|
||||
probe.Config().Nettests.WebsitesURLLimit = veryFew
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user