From f258737e846625d1b9828c57057b3d1cd3015ffe Mon Sep 17 00:00:00 2001 From: "Tim St. Clair" Date: Fri, 12 Feb 2016 15:49:35 -0800 Subject: [PATCH] Fix broken node test from 7a54f94 --- test/e2e_node/kubelet_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/test/e2e_node/kubelet_test.go b/test/e2e_node/kubelet_test.go index 9cb3894e95..5cd8efa044 100644 --- a/test/e2e_node/kubelet_test.go +++ b/test/e2e_node/kubelet_test.go @@ -120,7 +120,6 @@ var _ = Describe("Kubelet", func() { It("it should report resource usage through the stats api", func() { By("Returning stats summary") resp, err := http.Get(*kubeletAddress + "/stats/summary") - now := time.Now() Expect(err).To(BeNil(), fmt.Sprintf("Failed to get /stats/summary")) summary := stats.Summary{} contentsBytes, err := ioutil.ReadAll(resp.Body) @@ -130,9 +129,6 @@ var _ = Describe("Kubelet", func() { err = decoder.Decode(&summary) Expect(err).To(BeNil(), fmt.Sprintf("Failed to parse /stats/summary to go struct: %+v", resp)) - By("Having the correct time") - Expect(summary.Time.Time).To(BeTemporally("~", now, 20*time.Second)) - By("Having resources for node") Expect(summary.Node.NodeName).To(Equal(*nodeName)) Expect(summary.Node.CPU.UsageCoreNanoSeconds).NotTo(BeNil())