AC-620 Skip deadlock test when not using PostgreSQL.

This commit is contained in:
Chris Church 2013-11-21 19:41:02 -05:00
parent fc5c97d9ea
commit 5fa228c085

View File

@ -1365,6 +1365,8 @@ class JobTransactionTest(BaseJobTestMixin, django.test.LiveServerTestCase):
t.join(20)
def test_for_job_deadlocks(self):
if 'postgresql' not in settings.DATABASES['default']['ENGINE']:
self.skipTest('Not using PostgreSQL')
# Create lots of extra test hosts to trigger job event callbacks
job = self.job_eng_run
inv = job.inventory