Skip to content

Commit 1b7bf4b

Browse files
fix
Signed-off-by: Yaroslav Borbat <[email protected]>
1 parent 5cad105 commit 1b7bf4b

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

images/virtualization-artifact/pkg/controller/gc/cron_source_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ import (
2020
"context"
2121
"time"
2222

23-
dlog "github.com/deckhouse/deckhouse/pkg/log"
2423
. "github.com/onsi/ginkgo/v2"
2524
. "github.com/onsi/gomega"
2625
clock "k8s.io/utils/clock/testing"
2726
"sigs.k8s.io/controller-runtime/pkg/client"
2827
"sigs.k8s.io/controller-runtime/pkg/client/fake"
2928

29+
dlog "github.com/deckhouse/deckhouse/pkg/log"
3030
"github.com/deckhouse/virtualization-controller/pkg/common/testutil"
3131
)
3232

@@ -84,9 +84,9 @@ var _ = Describe("CronSource", func() {
8484
})
8585

8686
It("should not enqueue objects because ttl is not expired", func() {
87-
spawnFakeObjects(10, 10, fakeObjectPhaseCompleted, fakeClient, fakeClock)
87+
spawnFakeObjects(5, 10, fakeObjectPhaseCompleted, fakeClient, fakeClock)
8888
spawnFakeObjects(10, 10, fakeObjectPhasePending, fakeClient, fakeClock)
89-
spawnFakeObjects(10, 10, fakeObjectPhaseRunning, fakeClient, fakeClock)
89+
spawnFakeObjects(15, 10, fakeObjectPhaseRunning, fakeClient, fakeClock)
9090

9191
Expect(source.Start(ctx, queue)).To(Succeed())
9292
time.Sleep(1 * time.Second)

images/virtualization-artifact/pkg/controller/gc/gc_reconciler_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"time"
66

7-
dlog "github.com/deckhouse/deckhouse/pkg/log"
87
. "github.com/onsi/ginkgo/v2"
98
. "github.com/onsi/gomega"
109
"k8s.io/apimachinery/pkg/types"
@@ -13,6 +12,7 @@ import (
1312
"sigs.k8s.io/controller-runtime/pkg/client/fake"
1413
"sigs.k8s.io/controller-runtime/pkg/reconcile"
1514

15+
dlog "github.com/deckhouse/deckhouse/pkg/log"
1616
"github.com/deckhouse/virtualization-controller/pkg/common/testutil"
1717
)
1818

@@ -38,7 +38,6 @@ var _ = Describe("GCReconciler", func() {
3838
})
3939

4040
It("should enqueue 100 objects in completed state and delete them", func() {
41-
4241
spawnFakeObjects(10, 10, fakeObjectPhaseCompleted, fakeClient, fakeClock)
4342
spawnFakeObjects(10, 10, fakeObjectPhasePending, fakeClient, fakeClock)
4443
spawnFakeObjects(10, 10, fakeObjectPhaseRunning, fakeClient, fakeClock)

images/virtualization-artifact/pkg/controller/vm/gc.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import (
2525
"sigs.k8s.io/controller-runtime/pkg/manager"
2626

2727
"github.com/deckhouse/deckhouse/pkg/log"
28-
2928
"github.com/deckhouse/virtualization-controller/pkg/config"
3029
"github.com/deckhouse/virtualization-controller/pkg/controller/gc"
3130
)

images/virtualization-artifact/pkg/controller/vmop/gc.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import (
2424
"sigs.k8s.io/controller-runtime/pkg/manager"
2525

2626
"github.com/deckhouse/deckhouse/pkg/log"
27-
2827
commonvmop "github.com/deckhouse/virtualization-controller/pkg/common/vmop"
2928
"github.com/deckhouse/virtualization-controller/pkg/config"
3029
"github.com/deckhouse/virtualization-controller/pkg/controller/gc"

0 commit comments

Comments
 (0)