del unused value

This commit is contained in:
fighterhit
2021-01-13 12:43:54 +08:00
parent 24dd9b1f04
commit 16c6b99fcd

View File

@@ -983,12 +983,12 @@ func TestDevicePreStartContainer(t *testing.T) {
podsStub.updateActivePods(activePods) podsStub.updateActivePods(activePods)
err = testManager.Allocate(pod2, &pod2.Spec.Containers[0]) err = testManager.Allocate(pod2, &pod2.Spec.Containers[0])
as.Nil(err) as.Nil(err)
runContainerOpts, err = testManager.GetDeviceRunContainerOptions(pod2, &pod2.Spec.Containers[0]) _, err = testManager.GetDeviceRunContainerOptions(pod2, &pod2.Spec.Containers[0])
as.Nil(err) as.Nil(err)
select { select {
case <-time.After(time.Millisecond): case <-time.After(time.Millisecond):
t.Log("When pod resourceQuantity is 0, PreStartContainer RPC stub will be skipped") t.Log("When pod resourceQuantity is 0, PreStartContainer RPC stub will be skipped")
case initializedDevs = <-ch: case <-ch:
break break
} }
} }