Skip to content

Commit

Permalink
Merge pull request cram2#123 from LucaKro/failure_handling
Browse files Browse the repository at this point in the history
[Tests] adjusted test cases of language to reflect changes made for RetryMonitor
  • Loading branch information
sunava authored Aug 16, 2024
2 parents f511202 + 0fe6832 commit b635a83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/test_language.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def raise_except():

plan = act + code
with simulated_robot:
state = plan.perform()
state, _ = plan.perform()
self.assertIsInstance(plan.exceptions[plan], PlanFailure)
self.assertEqual(len(plan.exceptions.keys()), 1)
self.assertEqual(state, State.FAILED)
Expand All @@ -284,7 +284,7 @@ def raise_except():

plan = act - code
with simulated_robot:
state = plan.perform()
state, _ = plan.perform()
self.assertIsInstance(plan.exceptions[plan], list)
self.assertIsInstance(plan.exceptions[plan][0], PlanFailure)
self.assertEqual(len(plan.exceptions.keys()), 1)
Expand All @@ -298,7 +298,7 @@ def raise_except():

plan = act | code
with simulated_robot:
state = plan.perform()
state, _ = plan.perform()
self.assertIsInstance(plan.exceptions[plan], list)
self.assertIsInstance(plan.exceptions[plan][0], PlanFailure)
self.assertEqual(len(plan.exceptions.keys()), 1)
Expand All @@ -312,7 +312,7 @@ def raise_except():

plan = act ^ code
with simulated_robot:
state = plan.perform()
state, _ = plan.perform()
self.assertIsInstance(plan.exceptions[plan], list)
self.assertIsInstance(plan.exceptions[plan][0], PlanFailure)
self.assertEqual(len(plan.exceptions.keys()), 1)
Expand Down

0 comments on commit b635a83

Please sign in to comment.