Skip to content

Commit

Permalink
Added timeout to long-running test
Browse files Browse the repository at this point in the history
  • Loading branch information
seans3 committed Jun 18, 2018
1 parent 6834c10 commit 6c3b351
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"
)

const serverSideTimeoutSeconds = 10

var _ = Describe("Client", func() {

var scheme *runtime.Scheme
Expand Down Expand Up @@ -242,7 +244,7 @@ var _ = Describe("Client", func() {
Expect(err).To(HaveOccurred())

close(done)
})
}, serverSideTimeoutSeconds)

It("should fail if the object cannot be mapped to a GVK", func() {
By("creating client with empty Scheme")
Expand Down

0 comments on commit 6c3b351

Please sign in to comment.