We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa3026d commit e8d50c3Copy full SHA for e8d50c3
test/support/machinesets.go
@@ -3,6 +3,7 @@ package support
3
import (
4
"github.com/onsi/gomega"
5
6
+ "k8s.io/apimachinery/pkg/api/errors"
7
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
8
9
v1beta1 "github.com/openshift/api/machine/v1beta1"
@@ -31,6 +32,9 @@ func MachineSetId(machineSet v1beta1.MachineSet) string {
31
32
33
func MachineSetsExist(t Test) bool {
34
ms, err := MachineSets(t)
35
+ if err != nil && errors.IsNotFound(err) {
36
+ return false
37
+ }
38
t.Expect(err).NotTo(gomega.HaveOccurred())
39
return ms != nil
40
}
0 commit comments