Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
computron committed Feb 9, 2016
1 parent 40ac372 commit 13b44ad
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions chronograph/tests/test_chronograph.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def test_example8(self):
cg = Chronograph(name="TestCase", throw_exceptions=True)

cg.start()
self.assertRaises(ChronographError, cg.start()) # can't start a Chronograph that's already started!
self.assertRaises(ChronographError, cg.start) # can't start a Chronograph that's already started!

def test_example8b(self):
cg = Chronograph(name="TestCase", throw_exceptions=False)
Expand All @@ -101,9 +101,10 @@ def test_example8b(self):
cg.start() # shouldn't throw exception

t1 = cg.total_elapsed_time
c1 = cg.last_split_time
c1 = get_split_time(cg.timing_data[0], allow_still_running=True)
time.sleep(0.1)
t2 = cg.total_elapsed_time
c2 = cg.last_split_time
c2 = get_split_time(cg.timing_data[0], allow_still_running=True)
self.assertGreater(t2, t1)
self.assertGreater(c2, c1)

Expand Down

0 comments on commit 13b44ad

Please sign in to comment.