Skip to content

Commit 1fccb1c

Browse files
committed
In TestResyncFailed we only want to force failures at peerdb side, this change kills only backends connected to this service thus avoiding messing with the test catalog connection pool when CI uses the same DB for sources and catalog
1 parent 35fcbee commit 1fccb1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flow/e2e/api_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ func (s APITestSuite) TestResyncFailed() {
14221422
})
14231423

14241424
_, err = pgSource.PostgresConnector.Conn().Exec(s.t.Context(),
1425-
`SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE query LIKE $1`,
1425+
`SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE application_name = 'peerdb' AND query LIKE $1`,
14261426
"%"+s.suffix+"%")
14271427
require.NoError(s.t, err)
14281428

0 commit comments

Comments
 (0)