Skip to content

Fix infinite loop #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 22, 2022
Merged

Fix infinite loop #8

merged 3 commits into from
Mar 22, 2022

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