Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

Commit 33fe56e

Browse files
authored
Merge pull request #30 from InVisionApp/recveq
fix receive tests
2 parents 215fc93 + de25adc commit 33fe56e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

rye_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ var _ = Describe("Rye", func() {
121121
Expect(h).To(BeAssignableToTypeOf(func(http.ResponseWriter, *http.Request) {}))
122122
Expect(os.Getenv(RYE_TEST_HANDLER_ENV_VAR)).To(Equal("1"))
123123

124-
Eventually(inc).Should(Receive(&statsInc{"handlers.successHandler.2xx", 1, float32(STATRATE)}))
124+
Eventually(inc).Should(Receive(Equal(statsInc{"handlers.successHandler.2xx", 1, float32(STATRATE)})))
125125
Eventually(timing).Should(Receive(HaveTiming("handlers.successHandler.runtime", float32(STATRATE))))
126126
})
127127
})
@@ -247,8 +247,8 @@ var _ = Describe("Rye", func() {
247247
Expect(h).ToNot(BeNil())
248248
Expect(h).To(BeAssignableToTypeOf(func(http.ResponseWriter, *http.Request) {}))
249249
Expect(response.Code).To(Equal(505))
250-
Eventually(inc).Should(Receive(&statsInc{"handlers.failureHandler.505", 1, float32(STATRATE)}))
251-
Eventually(inc).Should(Receive(&statsInc{"errors", 1, float32(STATRATE)}))
250+
Eventually(inc).Should(Receive(Equal(statsInc{"errors", 1, float32(STATRATE)})))
251+
Eventually(inc).Should(Receive(Equal(statsInc{"handlers.failureHandler.505", 1, float32(STATRATE)})))
252252
Eventually(timing).Should(Receive(HaveTiming("handlers.failureHandler.runtime", float32(STATRATE))))
253253
})
254254
})

0 commit comments

Comments
 (0)