Increase number of workers to 3 for Windows

Number of workers was set to be 1 because prallel probing on Windows is
flakier, network policy tests may get stuck, this symptom disappears on
the newest kubernetes, network poicy tests run very well with 3 workers.
This commit is contained in:
hxie 2022-01-25 18:31:57 -08:00
parent cd117abf19
commit 56382ddf16

View File

@ -97,13 +97,9 @@ func (m *Model) GetProbeTimeoutSeconds() int {
return timeoutSeconds
}
// GetWorkers returns the number of workers suggested to run when testing, taking windows heuristics into account, where parallel probing is flakier.
// GetWorkers returns the number of workers suggested to run when testing.
func (m *Model) GetWorkers() int {
numberOfWorkers := 3
if framework.NodeOSDistroIs("windows") {
numberOfWorkers = 1 // See https://github.com/kubernetes/kubernetes/pull/97690
}
return numberOfWorkers
return 3
}
// NewReachability instantiates a default-true reachability from the model's pods