From b2654ec4e87a605dfd9e0e6d062956116d94d52f Mon Sep 17 00:00:00 2001 From: sivchari Date: Thu, 21 Apr 2022 02:41:04 +0900 Subject: [PATCH] fix sta5 test --- _test/sta5/sta5_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/_test/sta5/sta5_test.go b/_test/sta5/sta5_test.go index e9b09f1a..36b88a13 100644 --- a/_test/sta5/sta5_test.go +++ b/_test/sta5/sta5_test.go @@ -8,6 +8,7 @@ import ( "testing" "github.com/TechBowl-japan/go-stations/db" + "github.com/TechBowl-japan/go-stations/handler" "github.com/TechBowl-japan/go-stations/handler/router" ) @@ -31,6 +32,8 @@ func TestStation5(t *testing.T) { return } r := router.NewRouter(todoDB) + h := handler.NewHealthzHandler() + r.Handle("/healthz", h) srv := httptest.NewServer(r) defer srv.Close() req, err := http.NewRequest(http.MethodGet, srv.URL+"/healthz", nil)