mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
17 lines
222 B
Go
17 lines
222 B
Go
package controllers
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
natsserver "github.com/nats-io/nats-server/test"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
s := natsserver.RunDefaultServer()
|
|
defer s.Shutdown()
|
|
|
|
code := m.Run()
|
|
os.Exit(code)
|
|
}
|