]> source.dussan.org Git - gitea.git/commit
Timeout on flush in testing (#16864)
authorzeripath <art27@cantab.net>
Mon, 30 Aug 2021 04:27:51 +0000 (05:27 +0100)
committerGitHub <noreply@github.com>
Mon, 30 Aug 2021 04:27:51 +0000 (00:27 -0400)
commit06b9d553bc02f88553ced9822c55ae901e2ac28e
tree9c942f976fd58d8e5ef7a466732f61aa296084cf
parentb0ff42988249648999acc76198a11a4eefddbb9a
Timeout on flush in testing (#16864)

* Timeout on flush in testing

At the end of each test the queues are flushed. At present there is no limit on the
length of time a flush can take which can lead to long flushes.

However, if the CI task is cancelled we lose the log information as to where the long
flush was taking place.

This PR simply adds a default time limit of 2 minutes - at which point an error will
be produced. This should allow us to more easily find the culprit.

Signed-off-by: Andrew Thornton <art27@cantab.net>
* return better error

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
integrations/testlogger.go
modules/queue/manager.go