Assert that rollback is not attempted when there are no errors.

Signed-off-by: Eric Peterson <ericpeterson@spotify.com>
This commit is contained in:
Eric Peterson
2023-04-10 11:11:20 +02:00
parent 8bcbe27215
commit acb9ae3672
@@ -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 () => {