mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
refactor(cli): Move cmdflags package under pkg/cli/client (#1840)
Signed-off-by: Alexei Dodon <adodon@cisco.com>
This commit is contained in:
@@ -245,6 +245,7 @@ func TestScheduler(t *testing.T) {
|
||||
func TestGetNumWorkers(t *testing.T) {
|
||||
Convey("Test setting the number of workers - default value", t, func() {
|
||||
sch := scheduler.NewScheduler(config.New(), log.NewLogger("debug", "logFile"))
|
||||
defer os.Remove("logFile")
|
||||
So(sch.NumWorkers, ShouldEqual, runtime.NumCPU()*4)
|
||||
})
|
||||
|
||||
@@ -252,6 +253,7 @@ func TestGetNumWorkers(t *testing.T) {
|
||||
cfg := config.New()
|
||||
cfg.Scheduler = &config.SchedulerConfig{NumWorkers: 3}
|
||||
sch := scheduler.NewScheduler(cfg, log.NewLogger("debug", "logFile"))
|
||||
defer os.Remove("logFile")
|
||||
So(sch.NumWorkers, ShouldEqual, 3)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user