(m *testing.M)
| 15 | } |
| 16 | |
| 17 | func TestMain(m *testing.M) { |
| 18 | if err := srv.Start(context.Background()); err != nil { |
| 19 | panic(err) |
| 20 | } |
| 21 | defer os.Exit(m.Run()) |
| 22 | |
| 23 | srv.Close() |
| 24 | } |
| 25 | |
| 26 | func TestCmdAuth(t *testing.T) { |
| 27 | t.Run("auth", func(t *testing.T) { |