Skip to content

Commit 0ebaae8

Browse files
author
Kenichi Omichi
committed
Replace framework.Failf with ExpectNoError
1 parent 6dbb92d commit 0ebaae8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/e2e/storage/volume_provisioning.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -673,10 +673,10 @@ var _ = utils.SIGDescribe("Dynamic Provisioning", func() {
673673
// Modifying the default storage class can be disruptive to other tests that depend on it
674674
ginkgo.It("should be disabled by changing the default annotation [Serial] [Disruptive]", func() {
675675
e2eskipper.SkipUnlessProviderIs("openstack", "gce", "aws", "gke", "vsphere", "azure")
676+
676677
scName, scErr := e2epv.GetDefaultStorageClassName(c)
677-
if scErr != nil {
678-
framework.Failf(scErr.Error())
679-
}
678+
framework.ExpectNoError(scErr)
679+
680680
test := testsuites.StorageClassTest{
681681
Name: "default",
682682
ClaimSize: "2Gi",
@@ -710,10 +710,10 @@ var _ = utils.SIGDescribe("Dynamic Provisioning", func() {
710710
// Modifying the default storage class can be disruptive to other tests that depend on it
711711
ginkgo.It("should be disabled by removing the default annotation [Serial] [Disruptive]", func() {
712712
e2eskipper.SkipUnlessProviderIs("openstack", "gce", "aws", "gke", "vsphere", "azure")
713+
713714
scName, scErr := e2epv.GetDefaultStorageClassName(c)
714-
if scErr != nil {
715-
framework.Failf(scErr.Error())
716-
}
715+
framework.ExpectNoError(scErr)
716+
717717
test := testsuites.StorageClassTest{
718718
Name: "default",
719719
ClaimSize: "2Gi",

0 commit comments

Comments
 (0)