mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-05-01 15:10:02 -05:00
4ba2c7e155
* fix(test): Add healthcheck to harness engine startup * increase ramup duration to 30s
19 lines
368 B
Go
19 lines
368 B
Go
package harness
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
RunTestWithEngine(m)
|
|
}
|
|
|
|
// Tests that the engine starts up and shuts down correctly without leaking
|
|
// goroutines.
|
|
func TestStartupShutdown(t *testing.T) {
|
|
if err := WaitEngineReady(t.Context(), 120*time.Second); err != nil {
|
|
t.Errorf("failed to bring up engine in time: %s", err)
|
|
}
|
|
}
|