diff --git a/plugins/search-backend-module-pg/src/PgSearchEngine/PgSearchEngineIndexer.test.ts b/plugins/search-backend-module-pg/src/PgSearchEngine/PgSearchEngineIndexer.test.ts index d6369d4ac3..a8e010dea5 100644 --- a/plugins/search-backend-module-pg/src/PgSearchEngine/PgSearchEngineIndexer.test.ts +++ b/plugins/search-backend-module-pg/src/PgSearchEngine/PgSearchEngineIndexer.test.ts @@ -65,6 +65,7 @@ describe('PgSearchEngineIndexer', () => { ); expect(database.completeInsert).toHaveBeenCalledWith(tx, 'my-type'); expect(tx.commit).toHaveBeenCalled(); + expect(tx.rollback).not.toHaveBeenCalled(); }); it('should batch insert documents', async () => {