Fix the tests.

This commit is contained in:
2023-10-19 14:53:49 +01:00
parent 92359c1114
commit ef8731300c
+3 -5
View File
@@ -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))
}