Skip to content

Commit d613f03

Browse files
committed
Turn the comments into ginkgo.By
lint fix
1 parent eca9247 commit d613f03

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/integration/singlecluster/scheduler/preemption_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,13 +1095,13 @@ var _ = ginkgo.Describe("Preemption", func() {
10951095
Cohort("gpu-cohort").
10961096
ResourceGroup(
10971097
*utiltestingapi.MakeFlavorQuotas("alpha").
1098-
Resource(corev1.ResourceCPU, "10", "100"). // nominal=10, can borrow up to 100
1098+
Resource(corev1.ResourceCPU, "10", "100"). // nominal=10, can borrow up to 100
10991099
Resource(corev1.ResourceMemory, "20Gi", "200Gi"). // nominal=20Gi, can borrow up to 200Gi
11001100
Obj(),
11011101
).
11021102
ResourceGroup(
11031103
*utiltestingapi.MakeFlavorQuotas("beta").
1104-
Resource("vcuda-core", "100", "0"). // nominal=100, no borrowing
1104+
Resource("vcuda-core", "100", "0"). // nominal=100, no borrowing
11051105
Resource("vcuda-memory", "1000", "0"). // nominal=1000, no borrowing
11061106
Obj(),
11071107
).
@@ -1126,7 +1126,7 @@ var _ = ginkgo.Describe("Preemption", func() {
11261126
).
11271127
ResourceGroup(
11281128
*utiltestingapi.MakeFlavorQuotas("beta").
1129-
Resource("vcuda-core", "10", "100"). // nominal=10, can borrow up to 100
1129+
Resource("vcuda-core", "10", "100"). // nominal=10, can borrow up to 100
11301130
Resource("vcuda-memory", "100", "1000"). // nominal=100, can borrow up to 1000
11311131
Obj(),
11321132
).
@@ -1170,7 +1170,7 @@ var _ = ginkgo.Describe("Preemption", func() {
11701170
util.MustCreate(ctx, k8sClient, betaWl1)
11711171
util.ExpectWorkloadsToHaveQuotaReservation(ctx, k8sClient, betaCQ.Name, betaWl1)
11721172

1173-
ginkgo.By("Creating a high priority workload in alpha-cq that uses vcuda resources and borrows CPU/Memory")
1173+
ginkgo.By("Creating a workload in alpha-cq that uses vcuda resources and borrows CPU/Memory")
11741174
// This workload:
11751175
// - Uses 20 CPU (borrows 20 from betaCQ, as alphaCQ already used 20)
11761176
// - Uses 40Gi memory (borrows 40Gi from betaCQ, as alphaCQ already used 40Gi)
@@ -1190,7 +1190,7 @@ var _ = ginkgo.Describe("Preemption", func() {
11901190
util.ExpectWorkloadsToBePreempted(ctx, k8sClient, betaWl1)
11911191
util.FinishEvictionForWorkloads(ctx, k8sClient, betaWl1)
11921192

1193-
// Verify the high priority workload is admitted
1193+
ginkgo.By("Verifying the workload requiring preemption has been admitted.")
11941194
util.ExpectWorkloadsToHaveQuotaReservation(ctx, k8sClient, alphaCQ.Name, alphaWlPreempting)
11951195
util.ExpectWorkloadsToBePending(ctx, k8sClient, betaWl1)
11961196

0 commit comments

Comments
 (0)