Skip to content

Commit 25049ca

Browse files
committed
test: re-enable parallel and other tests
1 parent 0e26f75 commit 25049ca

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
"prepack": "sf-prepack",
110110
"prepare": "sf-install",
111111
"test": "wireit",
112-
"test:nuts": "nyc mocha \"./test/nut/sandboxRefresh.nut.ts\" --slow 4500 --timeout 1200000",
112+
"test:nuts": "nyc mocha \"./test/nut/*.nut.ts\" --slow 4500 --timeout 1200000 --parallel --jobs 5",
113113
"test:nuts:legacy": "nyc mocha \"./test/nut/legacy/*.nut.ts\" --slow 4500 --timeout 1200000 --parallel --jobs 5",
114114
"test:nuts:sandbox": "nyc mocha \"./test/**/*.sandboxNut.ts\" --slow 450000 --timeout 7200000 --parallel --jobs 5",
115115
"test:only": "wireit",

test/nut/sandboxRefresh.nut.ts

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ describe('Sandbox Refresh', () => {
302302
expect(sfCommandUxStubs.info.firstCall.args[0]).to.equal(sbxStatusMsg);
303303
});
304304

305-
it.only('should poll and report a success and write an auth file', async () => {
305+
it('should poll and report a success and write an auth file', async () => {
306306
const sbxInfo = getSandboxInfo();
307307
const sbxName = sbxInfo.SandboxName;
308308
const sbxProcess = getSandboxProcess();
@@ -350,8 +350,6 @@ describe('Sandbox Refresh', () => {
350350
// @ts-expect-error stubbing private function
351351
sinonSandbox.stub(AuthInfo.prototype, 'getNamespacePrefix').resolves();
352352

353-
const authInfoCreateSpy = sinonSandbox.spy(AuthInfo, 'create');
354-
355353
const result: SandboxProcessObject = await RefreshSandbox.run([
356354
'--name',
357355
sbxName,
@@ -371,16 +369,7 @@ describe('Sandbox Refresh', () => {
371369
expect(toolingQueryStub.calledOnce, 'toolingQueryStub called').to.be.true;
372370
expect(querySandboxProcessByIdStub.called, 'querySandboxProcessByIdStub called').to.be.true;
373371
expect(sandboxSignupCompleteStub.called, 'sandboxSignupCompleteStub called').to.be.true;
374-
// expect(authInfoExchangeTokenStub.called, 'authInfoExchangeTokenStub called').to.be.true;
375-
// eslint-disable-next-line no-console
376-
console.log(authInfoCreateSpy.callCount);
377-
// eslint-disable-next-line no-console
378-
console.dir(authInfoCreateSpy.firstCall.args);
379-
// eslint-disable-next-line no-console
380-
console.dir(authInfoCreateSpy.secondCall.args);
381-
// eslint-disable-next-line no-console
382-
console.dir(authInfoCreateSpy.thirdCall.args);
383-
assert(authInfoExchangeTokenStub);
372+
expect(authInfoExchangeTokenStub.called, 'authInfoExchangeTokenStub called').to.be.true;
384373

385374
// Check auth files exist
386375
const authFileContents = readAuthFile(session.homeDir, sbxAuthResponse.authUserName);

0 commit comments

Comments
 (0)