Skip to content

Commit

Permalink
Merge pull request #30 from InVisionApp/recveq
Browse files Browse the repository at this point in the history
fix receive tests
  • Loading branch information
talpert authored Sep 12, 2017
2 parents 215fc93 + de25adc commit 33fe56e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rye_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
})
})
Expand Down Expand Up @@ -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))))
})
})
Expand Down

0 comments on commit 33fe56e

Please sign in to comment.