Skip to content

Commit

Permalink
fix sta5 test
Browse files Browse the repository at this point in the history
  • Loading branch information
sivchari committed Apr 20, 2022
1 parent 550bd18 commit b2654ec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions _test/sta5/sta5_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand All @@ -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)
Expand Down

0 comments on commit b2654ec

Please sign in to comment.