mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
Merge pull request #90828 from gaurav1086/fix_data_race_storage
Fix date race in storage tests
This commit is contained in:
commit
620b7720e6
@ -144,8 +144,6 @@ func (t *stressTestSuite) DefineTests(driver TestDriver, pattern testpatterns.Te
|
|||||||
}
|
}
|
||||||
|
|
||||||
ginkgo.It("multiple pods should access different volumes repeatedly [Slow] [Serial]", func() {
|
ginkgo.It("multiple pods should access different volumes repeatedly [Slow] [Serial]", func() {
|
||||||
var err error
|
|
||||||
|
|
||||||
l := init()
|
l := init()
|
||||||
defer func() {
|
defer func() {
|
||||||
cleanup(l)
|
cleanup(l)
|
||||||
@ -181,7 +179,7 @@ func (t *stressTestSuite) DefineTests(driver TestDriver, pattern testpatterns.Te
|
|||||||
default:
|
default:
|
||||||
pod := l.pods[podIndex]
|
pod := l.pods[podIndex]
|
||||||
framework.Logf("Pod %v, Iteration %v/%v", podIndex, j, l.testOptions.NumRestarts-1)
|
framework.Logf("Pod %v, Iteration %v/%v", podIndex, j, l.testOptions.NumRestarts-1)
|
||||||
_, err = cs.CoreV1().Pods(pod.Namespace).Create(context.TODO(), pod, metav1.CreateOptions{})
|
_, err := cs.CoreV1().Pods(pod.Namespace).Create(context.TODO(), pod, metav1.CreateOptions{})
|
||||||
framework.ExpectNoError(err)
|
framework.ExpectNoError(err)
|
||||||
|
|
||||||
err = e2epod.WaitForPodRunningInNamespace(cs, pod)
|
err = e2epod.WaitForPodRunningInNamespace(cs, pod)
|
||||||
|
Loading…
Reference in New Issue
Block a user