Skip to content
Permalink
Browse files

Tidy up string wrapping

  • Loading branch information...
gpeng committed Sep 21, 2016
1 parent a142bab commit 5bd89b635dc0f1c223474d977f093b6c1825656d
Showing with 5 additions and 4 deletions.
  1. +5 −4 healthcheck/healthcheck_test.go
@@ -92,10 +92,11 @@ var _ = Describe("HealthCheck", func() {
hc := healthcheck.NewHealthCheck(okChecker{}, criticalChecker{})
w := httptest.NewRecorder()
hc.HTTPHandler()(w, nil)
Expect(strings.TrimSpace(w.Body.String())).To(Equal(
`{"status":"critical","checks":{` +
`"critical":{"status":"critical","message":"A critical failure"},` +
`"ok":{"status":"ok"}}}`))
returned_json := strings.TrimSpace(w.Body.String())
expected_json := `{"status":"critical","checks":{` +
`"critical":{"status":"critical","message":"A critical failure"},` +
`"ok":{"status":"ok"}}}`
Expect(returned_json).To(Equal(expected_json))
})
})

0 comments on commit 5bd89b6

Please sign in to comment.
You can’t perform that action at this time.