Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fleaz committed Sep 17, 2018
1 parent 8e809d0 commit 626af42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gitlab_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func TestGitlabHandler(t *testing.T) {
}

rr := httptest.NewRecorder()
var gitlabModule Module = GitlabModule{}
var gitlabModule Module = &GitlabModule{}
gitlabModule.init(viper.Sub("modules.gitlab"))
handler := http.HandlerFunc(gitlabModule.getHandler())

Expand Down
2 changes: 1 addition & 1 deletion prometheus_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func TestPrometheusHandler(t *testing.T) {
}

rr := httptest.NewRecorder()
var prometheusModule Module = PrometheusModule{}
var prometheusModule Module = &PrometheusModule{}
prometheusModule.init(viper.Sub("modules.prometheus"))
handler := http.HandlerFunc(prometheusModule.getHandler())

Expand Down
2 changes: 1 addition & 1 deletion simple_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func TestSimpleHandler(t *testing.T) {
}

rr := httptest.NewRecorder()
var simpleModule Module = SimpleModule{}
var simpleModule Module = &SimpleModule{}
simpleModule.init(viper.Sub("modules.simple"))
handler := http.HandlerFunc(simpleModule.getHandler())

Expand Down

0 comments on commit 626af42

Please sign in to comment.