Change loadClientOrDie to return an error

Also remove a bunch of dead code. This is a step along the path to
getting rid of all the glog in util.go.
This commit is contained in:
Zach Loafman
2015-02-09 07:10:02 -08:00
parent c0d7e58be4
commit 2e4a1e910b
9 changed files with 33 additions and 78 deletions

View File

@@ -34,7 +34,9 @@ var _ = Describe("Events", func() {
var c *client.Client
BeforeEach(func() {
c = loadClientOrDie()
var err error
c, err = loadClient()
Expect(err).NotTo(HaveOccurred())
})
It("should be sent by kubelets and the scheduler about pods scheduling and running", func() {