listenbrainz-server icon indicating copy to clipboard operation
listenbrainz-server copied to clipboard

Speed up LB tests

Open amCap1712 opened this issue 2 years ago • 0 comments

To speed up LB tests: instead of creating and dropping tables after each test, delete all the data from the tables. This patch approximately halves the overall runtime for tests.

Other than that, the changes in the PR are to update tests because the various autoincrement sequences are not reset between tests. To fix the tests use the id from the row returned when the data is inserted in the db.

amCap1712 avatar Aug 24 '22 15:08 amCap1712