From 1e75fc11bcfd2fe919ab42eb06c66e032af67582 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Wed, 4 Nov 2026 06:59:46 +0000 Subject: [PATCH] test(connectors): wipe the migration and pairing tables before each PostgreSQL spec The coverage run and the no-skips run share one database. The migration claim left its rows behind, so the second run found the claim taken and two specs failed. Wipe the two tables the setup left out. Assisted-by: Claude:claude-sonnet-5-5 go --- core/services/studio/connectors/gorm_postgres_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/services/studio/connectors/gorm_postgres_test.go b/core/services/studio/connectors/gorm_postgres_test.go index cc45d928d4..9ec8eeadc2 100644 --- a/core/services/studio/connectors/gorm_postgres_test.go +++ b/core/services/studio/connectors/gorm_postgres_test.go @@ -29,7 +29,7 @@ var _ = Describe("GORM on PostgreSQL", func() { DeferCleanup(func() { _ = sqlDB.Close() }) s, err := connectors.NewGORM(db) Expect(err).NotTo(HaveOccurred()) - for _, tbl := range []string{"studio_connector_chats", "studio_connector_senders", "studio_connector_state", "studio_connector_keys", "studio_connectors"} { + for _, tbl := range []string{"studio_connector_chats", "studio_connector_senders", "studio_connector_state", "studio_connector_keys", "studio_connector_pairings", "studio_connector_migrations", "studio_connectors"} { Expect(db.Exec("DELETE FROM " + tbl).Error).To(Succeed()) } return s