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

Add regex to text-crypto-random #10020

Closed
wants to merge 1 commit into from

Conversation

NFoxley
Copy link
Contributor

@NFoxley NFoxley commented Dec 1, 2016

Checklist
  • make -j8 test (UNIX), or vcbuild test nosign (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)
Description of change

test: add RegExp as a second argument to assert.throws()

27:5 and 28:5 error assert.throws() should include RegExp as a second argument

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to the tests. label Dec 1, 2016
@mscdex mscdex added the crypto Issues and PRs related to the crypto subsystem. label Dec 1, 2016
@mscdex
Copy link
Contributor

mscdex commented Dec 1, 2016

Please see the commit message guidelines here.

Also, there is a typo in the commit message.

@imyller
Copy link
Member

imyller commented Dec 1, 2016

@NFoxley May I kindly ask you to format the commit message as described in CONTRIBUTING guidelines.

@imyller imyller added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Dec 1, 2016
@NFoxley
Copy link
Contributor Author

NFoxley commented Dec 1, 2016

Yes, I will reformat.

assert.throws(function() { f(value); });
assert.throws(function() { f(value, function() {}); });
assert.throws(function() { f(value); }, /size must be a number >= 0/);
assert.throws(function() { f(value, function() {}); }, /size must be a number >= 0/);
Copy link
Member

Choose a reason for hiding this comment

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

possibly long line. does this pass make lint?

Copy link
Contributor

Choose a reason for hiding this comment

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

To pass make lint this should be wrapped and indented to assert.throws( on the next line. :)

Copy link
Contributor

@Fishrock123 Fishrock123 left a comment

Choose a reason for hiding this comment

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

/Users/Jeremiah/Documents/node/test/parallel/test-crypto-random.js
  28:1  error  Line 28 exceeds the maximum line length of 80  max-len

When running make lint

@Fishrock123
Copy link
Contributor

@NFoxley Also if you could git commit --amend and add test : to the beginning of the commit message that would be great!

@NFoxley
Copy link
Contributor Author

NFoxley commented Dec 9, 2016

Should all be taken care of, thanks for the feedback everyone.

Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

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

Looks like prior comments have been addressed. LGTM provide CI passes.

@mhdawson
Copy link
Member

@mhdawson
Copy link
Member

In CI run smartos failure was #10166 so unrelated. Arm failure looks to be machine issue so this should be good to land.

@Fishrock123 can you check if you are happy your changes have been addressed ?

@mhdawson
Copy link
Member

@NFoxley looks like the change needs to be rebased since there have been other changes to the file landed. There are changes to the same part of the test so you'll need to look to see how the change in the other commmit related to the change you have here.

@Trott Trott force-pushed the test-crypto-random-regex branch from 19c540e to 78e1fa8 Compare December 14, 2016 23:10
@Trott
Copy link
Member

Trott commented Dec 14, 2016

@mhdawson @Fishrock123 @NFoxley I did the rebase/conflict resolution and pushed.

@Trott Trott force-pushed the test-crypto-random-regex branch from 78e1fa8 to d8e3670 Compare December 14, 2016 23:12
@Trott Trott force-pushed the test-crypto-random-regex branch from d8e3670 to c834c7f Compare December 14, 2016 23:15
@Trott
Copy link
Member

Trott commented Dec 22, 2016

@Fishrock123 I think your comments have been addressed. If so, can you please update your review so this can land? Thanks!

@Trott
Copy link
Member

Trott commented Dec 22, 2016

@Trott
Copy link
Member

Trott commented Dec 24, 2016

Only CI failure is a known flaky test that is fixed in another PR that should land today or tomorrow.

@Trott
Copy link
Member

Trott commented Dec 24, 2016

@Fishrock123 Looks good to you?

@Trott Trott dismissed Fishrock123’s stale review December 28, 2016 05:56

trivial fixes completed

Trott pushed a commit to Trott/io.js that referenced this pull request Dec 28, 2016
PR-URL: nodejs#10020
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@Trott
Copy link
Member

Trott commented Dec 28, 2016

Landed in 5f55faa.
Thanks for the contribution @NFoxley! 🎉

@Trott Trott closed this Dec 28, 2016
evanlucas pushed a commit that referenced this pull request Jan 3, 2017
PR-URL: #10020
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
evanlucas pushed a commit that referenced this pull request Jan 4, 2017
PR-URL: #10020
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@MylesBorins
Copy link
Contributor

Thoughts regarding a backport?

@MylesBorins
Copy link
Contributor

ping

@Trott
Copy link
Member

Trott commented May 8, 2017

@MylesBorins This PR applies cleanly for me to v6.x-staging.

MylesBorins pushed a commit that referenced this pull request May 9, 2017
PR-URL: #10020
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@MylesBorins MylesBorins mentioned this pull request May 23, 2017
andrew749 pushed a commit to michielbaird/node that referenced this pull request Jul 19, 2017
PR-URL: nodejs/node#10020
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. crypto Issues and PRs related to the crypto subsystem. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants