mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 04:06:03 +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() {
|
||||
var err error
|
||||
|
||||
l := init()
|
||||
defer func() {
|
||||
cleanup(l)
|
||||
@ -181,7 +179,7 @@ func (t *stressTestSuite) DefineTests(driver TestDriver, pattern testpatterns.Te
|
||||
default:
|
||||
pod := l.pods[podIndex]
|
||||
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)
|
||||
|
||||
err = e2epod.WaitForPodRunningInNamespace(cs, pod)
|
||||
|
Loading…
Reference in New Issue
Block a user