mirror of
https://codeberg.org/Codeberg/pages-server.git
synced 2025-04-26 06:36:58 +00:00
nit
This commit is contained in:
parent
5a5a7274c2
commit
0c622d1eac
2 changed files with 6 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue