Skip to content

Commit 620b772

Browse files
authored
Merge pull request kubernetes#90828 from gaurav1086/fix_data_race_storage
Fix date race in storage tests
2 parents fb3009c + af74fba commit 620b772

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/e2e/storage/testsuites/stress.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,6 @@ func (t *stressTestSuite) DefineTests(driver TestDriver, pattern testpatterns.Te
144144
}
145145

146146
ginkgo.It("multiple pods should access different volumes repeatedly [Slow] [Serial]", func() {
147-
var err error
148-
149147
l := init()
150148
defer func() {
151149
cleanup(l)
@@ -181,7 +179,7 @@ func (t *stressTestSuite) DefineTests(driver TestDriver, pattern testpatterns.Te
181179
default:
182180
pod := l.pods[podIndex]
183181
framework.Logf("Pod %v, Iteration %v/%v", podIndex, j, l.testOptions.NumRestarts-1)
184-
_, err = cs.CoreV1().Pods(pod.Namespace).Create(context.TODO(), pod, metav1.CreateOptions{})
182+
_, err := cs.CoreV1().Pods(pod.Namespace).Create(context.TODO(), pod, metav1.CreateOptions{})
185183
framework.ExpectNoError(err)
186184

187185
err = e2epod.WaitForPodRunningInNamespace(cs, pod)

0 commit comments

Comments
 (0)