summaryrefslogtreecommitdiff
path: root/testrepository/tests/commands/test_slowest.py
diff options
context:
space:
mode:
Diffstat (limited to 'testrepository/tests/commands/test_slowest.py')
-rw-r--r--testrepository/tests/commands/test_slowest.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/testrepository/tests/commands/test_slowest.py b/testrepository/tests/commands/test_slowest.py
index bcf8c94..20891f6 100644
--- a/testrepository/tests/commands/test_slowest.py
+++ b/testrepository/tests/commands/test_slowest.py
@@ -55,13 +55,10 @@ class TestCommand(ResourcedTestCase):
"""
test_id = self.getUniqueString()
start_time = datetime.now(pytz.UTC)
- inserter.time(start_time)
- test_case = PlaceHolder(test_id)
- inserter.startTest(test_case)
- inserter.time(
- start_time + timedelta(seconds=runtime))
- inserter.addSuccess(test_case)
- inserter.stopTest(test_case)
+ inserter.status(test_id=test_id, test_status='inprogress',
+ timestamp=start_time)
+ inserter.status(test_id=test_id, test_status='success',
+ timestamp=start_time + timedelta(seconds=runtime))
return test_id
def test_shows_one_test_when_one_test(self):