Skip to content

Commit 915c6a9

Browse files
committed
Remove error substring test, since errors vary from local to travis
1 parent 8f478f2 commit 915c6a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/client/client_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ var _ = Describe("Client", func() {
102102
close(done)
103103
}, serverSideTimeoutSeconds)
104104

105+
// TODO(seans): Cast "cl" as "client" struct from "Client" interface. Then validate the
106+
// instance values for the "client" struct.
105107
Describe("New", func() {
106108
It("should return a new Client", func(done Done) {
107109
cl, err := client.New(cfg, client.Options{})
@@ -242,7 +244,6 @@ var _ = Describe("Client", func() {
242244
By("creating the pod, since required field Containers is empty")
243245
err = cl.Create(context.TODO(), pod)
244246
Expect(err).To(HaveOccurred())
245-
Expect(err.Error()).To(ContainSubstring("is invalid"))
246247

247248
close(done)
248249
}, serverSideTimeoutSeconds)

0 commit comments

Comments
 (0)