Skip to content

Fix infinite loop#8

Merged
parsonsmatt merged 3 commits intomasterfrom
matt/fixinfloop
Mar 22, 2022
Merged

Fix infinite loop#8
parsonsmatt merged 3 commits intomasterfrom
matt/fixinfloop

Conversation

@parsonsmatt
Copy link
Copy Markdown
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
Copy Markdown
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)

exn <- subject TestException
exn `shouldBe` new TestException

describe "when the wrong error is tried " $ do
Copy link
Copy Markdown
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
Copy Markdown
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