refactoring to prep for integration tests

This commit is contained in:
David Zhao
2021-01-13 00:04:36 -08:00
parent 381ec58050
commit 09e5a37c75
10 changed files with 310 additions and 179 deletions
+26
View File
@@ -0,0 +1,26 @@
package test
import (
"os"
"testing"
"github.com/stretchr/testify/assert"
)
func TestScenarioDefault(t *testing.T) {
assert.True(t, true)
}
func TestMain(m *testing.M) {
s := createServer()
go func() {
s.Start()
}()
waitForServerToStart(s)
code := m.Run()
s.Stop()
os.Exit(code)
}