Skip to content

Conversation

parsonsmatt
Copy link
Owner

Before submitting your PR, check that you've:

After submitting your PR:

  • Update the Changelog.md file with a link to your PR.
  • Check that CI passes (or if it fails, for reasons unrelated to your change, like CI timeouts).

Comment on lines -117 to -119
| Just x <- flatten <$> Safe.fromException exn
=
pure x
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I moved the flattening of exceptions into the toException, which works (per test suites)

@@ -94,6 +115,24 @@ spec = do
exn <- subject TestException
exn `shouldBe` new TestException

describe "when the wrong error is tried " $ do
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Initial failing test case from the work app.

@parsonsmatt parsonsmatt linked an issue Mar 22, 2022 that may be closed by this pull request
@parsonsmatt
Copy link
Owner Author

I've tried this out on the work codebase and all tests pass 🎉

@parsonsmatt parsonsmatt merged commit 020a6d5 into master Mar 22, 2022
@parsonsmatt parsonsmatt deleted the matt/fixinfloop branch March 22, 2022 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Infinite loop with try
1 participant