test: use the common/fixtures module to load the fixtures#16823
test: use the common/fixtures module to load the fixtures#16823javierblancosp wants to merge 3 commits intonodejs:masterfrom
Conversation
|
Commit message is too long. |
test/pummel/test-hash-seed.js
Outdated
| @@ -1,20 +1,21 @@ | |||
| 'use strict'; | |||
|
|
|||
| // Check that spawn child don't create duplicated entries | |||
joyeecheung
left a comment
There was a problem hiding this comment.
Hi, thank you for working on this!
test/pummel/test-hash-seed.js
Outdated
| 'use strict'; | ||
|
|
||
| // Check that spawn child doesn't create duplicated entries | ||
| require('common'); |
There was a problem hiding this comment.
This does not seem to work without relative paths, can you change it to require('../common')?
test/pummel/test-hash-seed.js
Outdated
| const cp = require('child_process'); | ||
| const path = require('path'); | ||
| const targetScript = path.resolve(common.fixturesDir, 'guess-hash-seed.js'); | ||
| const fixtures = require('common/fixtures'); |
There was a problem hiding this comment.
Can you change this to const fixtures = require('../common/fixtures')?
test/pummel/test-hash-seed.js
Outdated
| console.log(`Seeds: ${seeds}`); | ||
| const hasDuplicates = (new Set(seeds)).size !== seeds.length; | ||
| const hasDuplicates = new Set(seeds).size !== seeds.length; | ||
| assert.strictEqual(hasDuplicates, false); |
There was a problem hiding this comment.
I think this could just be changed to assert.strictEqual(new Set(seeds).size, seeds.length); and drop the hasDuplicates
|
@joyeecheung - PTAL |
|
CI is good. I canceled AIX because it's taking hours right now and this is unlikely to trigger something AIX-specific. |
Replace `common.fixturesDir` with `fixtures.path()` usage in test/pummel/test-hash-seed.js. PR-URL: nodejs#16823 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
|
Landed in 5f398b3. Because |
Replace `common.fixturesDir` with `fixtures.path()` usage in test/pummel/test-hash-seed.js. PR-URL: #16823 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Replace `common.fixturesDir` with `fixtures.path()` usage in test/pummel/test-hash-seed.js. PR-URL: #16823 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Replace `common.fixturesDir` with `fixtures.path()` usage in test/pummel/test-hash-seed.js. PR-URL: #16823 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Replace `common.fixturesDir` with `fixtures.path()` usage in test/pummel/test-hash-seed.js. PR-URL: #16823 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Replace `common.fixturesDir` with `fixtures.path()` usage in test/pummel/test-hash-seed.js. PR-URL: #16823 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Use the common/fixtures module to load the fixtures on test-hash-seed file
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
test: