mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
test: Use runtime CPUs for test not static number. (#25458)
This commit is contained in:
@@ -1609,8 +1609,7 @@ func TestHTTP_AgentSchedulerWorkerInfoRequest(t *testing.T) {
|
||||
ci.Parallel(t)
|
||||
|
||||
configFn := func(c *Config) {
|
||||
var numSchedulers = 4
|
||||
c.Server.NumSchedulers = &numSchedulers
|
||||
c.Server.NumSchedulers = pointer.Of(runtime.NumCPU())
|
||||
c.Server.EnabledSchedulers = []string{"_core", "batch"}
|
||||
c.Client.Enabled = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user