From e73acbcc1c264a2b2ab3aa065ee4d69d76c84b90 Mon Sep 17 00:00:00 2001 From: Mark Frost Date: Tue, 15 Aug 2023 16:43:50 +0100 Subject: [PATCH] datastore: increase register scanner timeout 1 second was too short to initialise with a remote Postgres under the debugger in VSCode Signed-off-by: Mark Frost --- datastore/postgres/registerscanners.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/datastore/postgres/registerscanners.go b/datastore/postgres/registerscanners.go index 7c0638eab..02ac3c0d5 100644 --- a/datastore/postgres/registerscanners.go +++ b/datastore/postgres/registerscanners.go @@ -63,7 +63,7 @@ SELECT var tctx context.Context var done context.CancelFunc for _, v := range vs { - tctx, done = context.WithTimeout(ctx, time.Second) + tctx, done = context.WithTimeout(ctx, 5*time.Second) start := time.Now() err = s.pool.QueryRow(tctx, exists, v.Name(), v.Version(), v.Kind()). Scan(&ok)