From 626af421ff07814838f04046723ed1dc8bcda3d5 Mon Sep 17 00:00:00 2001 From: Felix Breidenstein Date: Tue, 28 Aug 2018 23:31:06 +0200 Subject: [PATCH] Fixed tests --- gitlab_test.go | 2 +- prometheus_test.go | 2 +- simple_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gitlab_test.go b/gitlab_test.go index 8f59287..0fa6c46 100644 --- a/gitlab_test.go +++ b/gitlab_test.go @@ -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()) diff --git a/prometheus_test.go b/prometheus_test.go index eededa5..3231992 100644 --- a/prometheus_test.go +++ b/prometheus_test.go @@ -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()) diff --git a/simple_test.go b/simple_test.go index 02e713d..9ffeb39 100644 --- a/simple_test.go +++ b/simple_test.go @@ -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())