16470: Fixes tests. Avoids closing a DB connection when using threads on tests.
authorLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 15 Jul 2020 14:14:09 +0000 (11:14 -0300)
committerLucas Di Pentima <lucas@di-pentima.com.ar>
Wed, 5 Aug 2020 13:36:17 +0000 (10:36 -0300)
commit01190b55cafa04ca0b73bf49fcb30f048fb934bf
treebe5a15afbc969d5ba1fc775ef9a958092a924a4c
parentb1b062e241839ede51223f90f8e12d8222414df8
16470: Fixes tests. Avoids closing a DB connection when using threads on tests.

From Rails 5.1, test threads share a database connection, so UpdatePriority
won't try to close DB connections when running from tests.

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas@di-pentima.com.ar>
services/api/lib/update_priority.rb
services/api/test/functional/arvados/v1/keep_services_controller_test.rb