This commit is contained in:
6543 2022-06-13 13:47:23 +02:00
parent 5a5a7274c2
commit 0c622d1eac
2 changed files with 6 additions and 5 deletions

View file

@ -16,14 +16,14 @@ import (
)
func TestMain(m *testing.M) {
log.Printf("=== TestMain: START Server ==\n")
log.Printf("=== TestMain: START Server ===\n")
serverCtx, serverCancel := context.WithCancel(context.Background())
if err := startServer(serverCtx); err != nil {
log.Fatal().Msgf("could not start server: %v", err)
}
defer func() {
serverCancel()
log.Printf("=== TestMain: Server STOPED ==\n")
log.Printf("=== TestMain: Server STOPED ===\n")
}()
time.Sleep(20 * time.Second)