Skip to content
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

Fix test failure panics when err is nil #776

Merged
merged 1 commit into from
Dec 9, 2018

Conversation

jdsutherland
Copy link
Contributor

Currently several tests use assert.Regexp(.. err.Error()) where err is
unchecked. If there is no error (it's nil) then the tests blow up and we
don't get a useful failure message.

Currently several tests use `assert.Regexp(.. err.Error())` where err is
unchecked. If there is no error (it's nil) then the tests blow up and we
don't get a useful failure.
@jdsutherland jdsutherland force-pushed the fix-test-err-nil-panics branch from 67be838 to 85e2be2 Compare December 9, 2018 03:02
Copy link
Contributor

@nywilken nywilken left a comment

Choose a reason for hiding this comment

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

Good catch - thanks for fixing. Might need to check other commands for similar issues. But this is good to go.

@nywilken nywilken merged commit eb097f6 into exercism:master Dec 9, 2018
Smarticles101 pushed a commit to Smarticles101/cli that referenced this pull request Feb 28, 2019
Currently several tests use `assert.Regexp(.. err.Error())` where err is
unchecked. If there is no error (it's nil) then the tests blow up and we don't get a useful failure.
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.

2 participants