diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-11-30 10:13:31 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2021-11-30 10:13:31 +0300 |
commit | 4b08f8066cbefa3a8dba65414150b95052257f5a (patch) | |
tree | 291b14cf916112df5b4863209c65956cd2fc32c7 | |
parent | 97cb08352c912ecfaa23888a67071344b2e7a467 (diff) | |
parent | 03253cbae7b73a21e92b0ae451a7453afd408b53 (diff) |
Merge branch 'jc-increase-db-cleanup-timeout' into 'master'
glsql: increase db cleanup timeout
See merge request gitlab-org/gitaly!4141
-rw-r--r-- | internal/praefect/datastore/glsql/testing.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/praefect/datastore/glsql/testing.go b/internal/praefect/datastore/glsql/testing.go index 630562f0d..6ab5f5282 100644 --- a/internal/praefect/datastore/glsql/testing.go +++ b/internal/praefect/datastore/glsql/testing.go @@ -198,7 +198,7 @@ func requireTerminateAllConnections(t testing.TB, db *sql.DB, database string) { WHERE datname = $1 AND pid != pg_backend_pid()`, database). Scan(&openConnections)) return openConnections == 0 - }, 5*time.Second, 10*time.Millisecond, "wait for all connections to be terminated") + }, 20*time.Second, 10*time.Millisecond, "wait for all connections to be terminated") } func initPraefectTestDB(t testing.TB, database string) *sql.DB { |