Skip to content
This repository has been archived by the owner on Oct 21, 2023. It is now read-only.

Commit

Permalink
fix(ci): add timeout for setting up application in integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
sewera committed Aug 28, 2022
1 parent 1107440 commit 2a94f31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/test/setup_core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@ package test
import (
"github.com/blazejsewera/notipie/core/internal/infra"
"testing"
"time"
)

func initCore(t testing.TB, port int) {
t.Helper()
appCtx := new(infra.AppContext)
appCtx.Init(config(port))
go appCtx.Start()
time.Sleep(150 * time.Millisecond) // TODO: change to better application readiness check to stabilize CI pipeline
t.Log("initCore: started core")
}

0 comments on commit 2a94f31

Please sign in to comment.