aboutsummaryrefslogtreecommitdiff
path: root/tests/test_baretrace.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_baretrace.py')
-rw-r--r--tests/test_baretrace.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_baretrace.py b/tests/test_baretrace.py
index 257754d..f1547c3 100644
--- a/tests/test_baretrace.py
+++ b/tests/test_baretrace.py
@@ -56,7 +56,7 @@ class TestBareTrace(unittest.TestCase):
trace.add_parsed_event("pmu_counter", self.dfr[0])
trace.add_parsed_event("load_event", self.dfr[1])
- self.assertEquals(trace.get_duration(), self.dfr[1].index[-1])
+ self.assertEquals(trace.get_duration(), self.dfr[1].index[-1] - self.dfr[0].index[0])
def test_bare_trace_get_duration_normalized(self):
"""BareTrace.get_duration() works if the trace has been normalized"""