diff --git a/tests/postgres/postgres_integration_test.go b/tests/postgres/postgres_integration_test.go index bf3abc49be..427694b587 100644 --- a/tests/postgres/postgres_integration_test.go +++ b/tests/postgres/postgres_integration_test.go @@ -133,6 +133,7 @@ func TestPostgres(t *testing.T) { defer cleanup() + waitCtx, cancel := context.WithTimeout(ctx, 10*time.Second) defer cancel() out, err := testutils.WaitForString(waitCtx, regexp.MustCompile(`Server ready to serve`), cmd.Out)