From 3437d178d4fca929dcb26f761fb37db4aea2695b Mon Sep 17 00:00:00 2001 From: James Cor Date: Tue, 19 Nov 2024 12:51:00 -0800 Subject: [PATCH] test skipping --- testing/go/regression/tool/replay.go | 2 +- testing/go/regression/tool/run_test.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/testing/go/regression/tool/replay.go b/testing/go/regression/tool/replay.go index 55537ac09c..53ec6f9a87 100644 --- a/testing/go/regression/tool/replay.go +++ b/testing/go/regression/tool/replay.go @@ -454,7 +454,7 @@ ListenerLoop: } } for _, failQuery := range options.FailQueries { - if message.String == failQuery { + if strings.Contains(message.String, failQuery) { tracker.Failed++ tracker.AddFailure(ReplayTrackerItem{ Query: message.String, diff --git a/testing/go/regression/tool/run_test.go b/testing/go/regression/tool/run_test.go index 0f7eaade3b..696d3fd7a6 100644 --- a/testing/go/regression/tool/run_test.go +++ b/testing/go/regression/tool/run_test.go @@ -102,4 +102,5 @@ WHERE pg_class.oid=indexrelid AND indrelid=pg_class_2.oid AND pg_class_2.relname = 'clstr_tst' AND indisclustered;`, + `SELECT 1 FROM pg_catalog.pg_constraint WHERE conrelid = i.indrelid AND conindid = i.indexrelid`, }