2020-05-15 10:19:55 -04:00
|
|
|
package controller
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"testing"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func Test_TestController(t *testing.T) {
|
|
|
|
|
t.Run("startup and shutdown", func(t *testing.T) {
|
|
|
|
|
t.Parallel()
|
|
|
|
|
tc := NewTestController(t, nil)
|
|
|
|
|
defer tc.Shutdown()
|
|
|
|
|
})
|
2022-03-31 08:48:50 -07:00
|
|
|
t.Run("start 2 controllers", func(t *testing.T) {
|
|
|
|
|
t.Parallel()
|
|
|
|
|
tc1 := NewTestController(t, nil)
|
|
|
|
|
tc2 := NewTestController(t, nil)
|
|
|
|
|
defer tc1.Shutdown()
|
|
|
|
|
defer tc2.Shutdown()
|
|
|
|
|
})
|
2020-05-15 10:19:55 -04:00
|
|
|
}
|