Improve storage test skipping pattern.

Including a skip method as the first line of a test does not prevent the test to fail in the BeforeEach function.
If the test is skipped because of a tag in the name, then we can prevent such odd behavior.
This commit is contained in:
Juan Escobar 2021-07-22 21:42:30 -05:00
parent 4818e5844e
commit fef5c0c1a6

View File

@ -283,8 +283,8 @@ var _ = utils.SIGDescribe("PersistentVolumes-local ", func() {
e2epod.DeletePodOrFail(config.client, config.ns, pod2.Name)
})
ginkgo.It("should set different fsGroup for second pod if first pod is deleted", func() {
e2eskipper.Skipf("Disabled temporarily, reopen after #73168 is fixed")
ginkgo.It("should set different fsGroup for second pod if first pod is deleted [Flaky]", func() {
// TODO: Disabled temporarily, remove [Flaky] tag after #73168 is fixed.
fsGroup1, fsGroup2 := int64(1234), int64(4321)
ginkgo.By("Create first pod and check fsGroup is set")
pod1 := createPodWithFsGroupTest(config, testVol, fsGroup1, fsGroup1)