mirror of
https://github.com/lukaszraczylo/graphql-monitoring-proxy.git
synced 2026-10-21 06:37:21 +00:00
Fix the tests.
This commit is contained in:
+3
-5
@@ -1,7 +1,6 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
assertions "github.com/stretchr/testify/assert"
|
assertions "github.com/stretchr/testify/assert"
|
||||||
@@ -21,14 +20,13 @@ func (suite *Tests) SetupTest() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (suite *Tests) BeforeTest(suiteName, testName string) {
|
func (suite *Tests) BeforeTest(suiteName, testName string) {
|
||||||
fmt.Println("BeforeTest")
|
|
||||||
cfg = &config{}
|
|
||||||
parseConfig()
|
|
||||||
StartMonitoringServer()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// func (suite *Tests) AfterTest(suiteName, testName string) {)
|
// func (suite *Tests) AfterTest(suiteName, testName string) {)
|
||||||
|
|
||||||
func TestSuite(t *testing.T) {
|
func TestSuite(t *testing.T) {
|
||||||
|
cfg = &config{}
|
||||||
|
parseConfig()
|
||||||
|
StartMonitoringServer()
|
||||||
suite.Run(t, new(Tests))
|
suite.Run(t, new(Tests))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user