Skip to content

Commit 4d77790

Browse files
committed
[no-relnote] Merge device plugin tests
Signed-off-by: Evan Lezar <[email protected]>
1 parent cc5259e commit 4d77790

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/e2e/device-plugin_test.go

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,16 @@ var _ = NVDescribe("GPU Device Plugin", func() {
162162
"nvidia.com/gpu": "^[1-9]$",
163163
}}
164164
eventuallyNonControlPlaneNodes(ctx, f.ClientSet).Should(MatchCapacity(capacityChecker, nodes), "Node capacity does not match")
165-
})
166-
It("it should run GPU jobs", func(ctx context.Context) {
167-
By("Creating a GPU job")
165+
166+
// TODO: As a workaround to installing and reinstalling client causing
167+
// the required resources to not be available, we merge the two tests.
168+
// })
169+
// It("it should run GPU jobs", func(ctx context.Context) {
170+
// By("Creating a GPU job")
168171
job := common.GPUJob.DeepCopy()
169172
job.Namespace = f.Namespace.Name
170-
_, err := f.ClientSet.BatchV1().Jobs(f.Namespace.Name).Create(ctx, job, metav1.CreateOptions{})
173+
174+
_, err = f.ClientSet.BatchV1().Jobs(f.Namespace.Name).Create(ctx, job, metav1.CreateOptions{})
171175
Expect(err).NotTo(HaveOccurred())
172176

173177
By("Waiting for job to complete")

0 commit comments

Comments
 (0)