From 470ec2178a16c4a4539fb75e889aa240c5b6abe9 Mon Sep 17 00:00:00 2001 From: Jorrit Schaap <schaap@astron.nl> Date: Tue, 17 Sep 2019 11:03:43 +0200 Subject: [PATCH] SW-816: fixed t_radb_functionality --- .../ResourceAssignmentDatabase/tests/t_radb_functionality.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SAS/ResourceAssignment/ResourceAssignmentDatabase/tests/t_radb_functionality.py b/SAS/ResourceAssignment/ResourceAssignmentDatabase/tests/t_radb_functionality.py index 042049a4803..14647d46f0d 100755 --- a/SAS/ResourceAssignment/ResourceAssignmentDatabase/tests/t_radb_functionality.py +++ b/SAS/ResourceAssignment/ResourceAssignmentDatabase/tests/t_radb_functionality.py @@ -1170,7 +1170,8 @@ class ResourceAssignmentDatabaseTest(RADBCommonTestMixin, unittest.TestCase): # suppose the resource_usages table is broken for some reason, fix it.... # break it first... - self._execute_query('TRUNCATE TABLE resource_allocation.resource_usage;') + self.radb.executeQuery('TRUNCATE TABLE resource_allocation.resource_usage;') + self.radb.commit() #check that it's broken self.assertNotEqual(40, self.radb.get_max_resource_usage_between(cep4_id, task1['starttime'], task1['starttime'], 'claimed')['usage']) #fix it @@ -2649,7 +2650,6 @@ class ResourceAssignmentDatabaseTest(RADBCommonTestMixin, unittest.TestCase): self.radb.getResourceUsages(task2['starttime'], task2['endtime'], RESOURCE_ID)[RESOURCE_ID]['claimed']) - @unittest.skip("") def test_20190814_bugfix_SW_786(self): ''' See: https://support.astron.nl/jira/browse/SW-786 -- GitLab