summaryrefslogtreecommitdiffstats
path: root/storperf/tests/db_tests/job_db_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'storperf/tests/db_tests/job_db_test.py')
-rw-r--r--storperf/tests/db_tests/job_db_test.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/storperf/tests/db_tests/job_db_test.py b/storperf/tests/db_tests/job_db_test.py
index 0972f84..fe3d9f1 100644
--- a/storperf/tests/db_tests/job_db_test.py
+++ b/storperf/tests/db_tests/job_db_test.py
@@ -1,5 +1,5 @@
##############################################################################
-# Copyright (c) 2015 EMC and others.
+# Copyright (c) 2016 EMC and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
@@ -186,6 +186,7 @@ class JobDBTest(unittest.TestCase):
def test_job_params(self):
expected = {"a": "1", "b": "2"}
- self.job.record_workload_params("ABCD", expected)
- actual = self.job.fetch_workload_params("ABCD")
+ self.job.job_id = "ABCD"
+ self.job.record_workload_params(expected)
+ actual = self.job.fetch_workload_params(self.job.job_id)
self.assertEqual(expected, actual)