Files
threshold/internal/daemon/controller/testing_test.go
T
Todd b58dada40d Move the server daemons into their own package (#2061)
* Move the server daemons into their own package

With this change the internal/server package now is dedicated to the server domain (workers and controllers) and not to the server daemons.
The hope is that this will make it easier to keep the daemons decoupled from the representation of the servers in the database.
2022-05-09 12:45:10 -07:00

21 lines
399 B
Go

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()
})
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()
})
}