From 398021b2306c0258e81492e89eee604361753186 Mon Sep 17 00:00:00 2001 From: konsumgandalf Date: Thu, 25 Jan 2024 20:45:19 +0100 Subject: [PATCH] fix(pkg-nexus): scheduler Adjust tests and bulk scheduler to rebasing. --- pkg/nexus/bulk/scheduler/bulk-scheduler.go | 1 - pkg/nexus/bulk/scheduler/bulk-scheduler_test.go | 2 +- pkg/nexus/deadline/scheduler/deadline-scheduler_test.go | 4 ++-- pkg/nexus/idle/scheduler/idle-scheduler_test.go | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/pkg/nexus/bulk/scheduler/bulk-scheduler.go b/pkg/nexus/bulk/scheduler/bulk-scheduler.go index 9a06a5b7bc..d52f29ebbc 100644 --- a/pkg/nexus/bulk/scheduler/bulk-scheduler.go +++ b/pkg/nexus/bulk/scheduler/bulk-scheduler.go @@ -1,7 +1,6 @@ package scheduler import ( - "log" "time" "github.com/nuclio/nuclio/pkg/nexus/bulk/models" diff --git a/pkg/nexus/bulk/scheduler/bulk-scheduler_test.go b/pkg/nexus/bulk/scheduler/bulk-scheduler_test.go index 6787ab22e5..fd99bbd308 100644 --- a/pkg/nexus/bulk/scheduler/bulk-scheduler_test.go +++ b/pkg/nexus/bulk/scheduler/bulk-scheduler_test.go @@ -9,7 +9,7 @@ import ( bulk "github.com/nuclio/nuclio/pkg/nexus/bulk/scheduler" "github.com/nuclio/nuclio/pkg/nexus/common/models/config" common "github.com/nuclio/nuclio/pkg/nexus/common/queue" - scheduler "github.com/nuclio/nuclio/pkg/nexus/common/scheduler" + "github.com/nuclio/nuclio/pkg/nexus/common/scheduler" utils "github.com/nuclio/nuclio/pkg/nexus/utils" "github.com/stretchr/testify/suite" ) diff --git a/pkg/nexus/deadline/scheduler/deadline-scheduler_test.go b/pkg/nexus/deadline/scheduler/deadline-scheduler_test.go index be47fb7453..8819bfe9e2 100644 --- a/pkg/nexus/deadline/scheduler/deadline-scheduler_test.go +++ b/pkg/nexus/deadline/scheduler/deadline-scheduler_test.go @@ -1,15 +1,15 @@ package deadline_test import ( + "fmt" "net/http" "testing" "time" - "fmt" "github.com/nuclio/nuclio/pkg/nexus/common/models/config" common "github.com/nuclio/nuclio/pkg/nexus/common/queue" "github.com/nuclio/nuclio/pkg/nexus/common/scheduler" - models "github.com/nuclio/nuclio/pkg/nexus/deadline/models" + "github.com/nuclio/nuclio/pkg/nexus/deadline/models" deadline "github.com/nuclio/nuclio/pkg/nexus/deadline/scheduler" utils "github.com/nuclio/nuclio/pkg/nexus/utils" "github.com/stretchr/testify/suite" diff --git a/pkg/nexus/idle/scheduler/idle-scheduler_test.go b/pkg/nexus/idle/scheduler/idle-scheduler_test.go index 6df2a3cecc..0842ad727e 100644 --- a/pkg/nexus/idle/scheduler/idle-scheduler_test.go +++ b/pkg/nexus/idle/scheduler/idle-scheduler_test.go @@ -34,7 +34,7 @@ func (suite *IdleSchedulerTestSuite) SetupTest() { } baseScheduler := scheduler. - NewBaseNexusScheduler(defaultQueue, &baseSchedulerConfig, &nexusConfig, Client) + NewBaseNexusScheduler(defaultQueue, &baseSchedulerConfig, &nexusConfig, Client, nil) suite.is = *idle.NewScheduler(baseScheduler) }