From ef8731300c2059ff3a2d921a97d46e4d4dd02470 Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Thu, 19 Oct 2023 14:53:49 +0100 Subject: [PATCH] Fix the tests. --- main_test.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/main_test.go b/main_test.go index e5145d3..44ad6d7 100644 --- a/main_test.go +++ b/main_test.go @@ -1,7 +1,6 @@ package main import ( - "fmt" "testing" assertions "github.com/stretchr/testify/assert" @@ -21,14 +20,13 @@ func (suite *Tests) SetupTest() { } func (suite *Tests) BeforeTest(suiteName, testName string) { - fmt.Println("BeforeTest") - cfg = &config{} - parseConfig() - StartMonitoringServer() } // func (suite *Tests) AfterTest(suiteName, testName string) {) func TestSuite(t *testing.T) { + cfg = &config{} + parseConfig() + StartMonitoringServer() suite.Run(t, new(Tests)) }