Skip to content

Commit

Permalink
Clean up invalidated unit tests
Browse files Browse the repository at this point in the history
We now fire `introspect` for the first time before we have any states
  • Loading branch information
Eric Hennenfent committed Aug 5, 2020
1 parent 201f585 commit 6be20b7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/other/test_state_introspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,8 @@ def test_introspect_daemon(self):
sum(1 if (st.state_list == StateLists.terminated) else 0 for st in hist),
)
)
self.assertEqual(
progression[0][1] + progression[0][0], 1
) # When fired for the first time, we have one busy state OR one ready state
self.assertGreater(progression[-1][2], 0) # Once finished, we have some terminated states
self.assertEqual(progression[-1][0], 0) # Once finished, we have no ready states
self.assertEqual(progression[-1][1], 0) # Once finished, we have no ready states
self.assertEqual(progression[-1][1], 0) # Once finished, we have no busy states
# Once finished, we have only terminated states.
self.assertGreater(progression[-1][2], 0)

Expand Down

0 comments on commit 6be20b7

Please sign in to comment.