Updated to not directly change the global variable claim

This commit is contained in:
Kobayashi,Daisuke
2025-07-23 03:44:48 +00:00
parent 92ddde52d2
commit 61bd5789be

View File

@@ -589,8 +589,9 @@ func testFilterTimeout(tCtx ktesting.TContext) {
createSlice(tCtx, slice.Obj())
otherSlice := st.MakeResourceSlice("worker-1", driverName).Devices(deviceNames...)
createdOtherSlice := createSlice(tCtx, otherSlice.Obj())
claim := claim.DeepCopy()
claim.Spec.Devices.Requests[0].Count = int64(devicesPerSlice + 1) // Impossible to allocate.
claim := createClaim(tCtx, namespace, "", class, claim)
claim = createClaim(tCtx, namespace, "", class, claim)
tCtx.Run("disabled", func(tCtx ktesting.TContext) {
pod := createPod(tCtx, namespace, "", claim, podWithClaimName)