refactoring to prep for integration tests
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user