From de25adc88cbcef0f0ac67cf0157f7d79ff8aea49 Mon Sep 17 00:00:00 2001 From: Tatsuro Alpert Date: Mon, 11 Sep 2017 08:18:56 -0700 Subject: [PATCH] fix receive tests --- rye_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rye_test.go b/rye_test.go index 13dc55d..c736ea9 100644 --- a/rye_test.go +++ b/rye_test.go @@ -121,7 +121,7 @@ var _ = Describe("Rye", func() { Expect(h).To(BeAssignableToTypeOf(func(http.ResponseWriter, *http.Request) {})) Expect(os.Getenv(RYE_TEST_HANDLER_ENV_VAR)).To(Equal("1")) - Eventually(inc).Should(Receive(&statsInc{"handlers.successHandler.2xx", 1, float32(STATRATE)})) + Eventually(inc).Should(Receive(Equal(statsInc{"handlers.successHandler.2xx", 1, float32(STATRATE)}))) Eventually(timing).Should(Receive(HaveTiming("handlers.successHandler.runtime", float32(STATRATE)))) }) }) @@ -247,8 +247,8 @@ var _ = Describe("Rye", func() { Expect(h).ToNot(BeNil()) Expect(h).To(BeAssignableToTypeOf(func(http.ResponseWriter, *http.Request) {})) Expect(response.Code).To(Equal(505)) - Eventually(inc).Should(Receive(&statsInc{"handlers.failureHandler.505", 1, float32(STATRATE)})) - Eventually(inc).Should(Receive(&statsInc{"errors", 1, float32(STATRATE)})) + Eventually(inc).Should(Receive(Equal(statsInc{"errors", 1, float32(STATRATE)}))) + Eventually(inc).Should(Receive(Equal(statsInc{"handlers.failureHandler.505", 1, float32(STATRATE)}))) Eventually(timing).Should(Receive(HaveTiming("handlers.failureHandler.runtime", float32(STATRATE)))) }) })