mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 21:53:52 +00:00
del unused value
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user