27 lines
301 B
Go
27 lines
301 B
Go
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)
|
|
}
|