Skip to content

Commit 47323c5

Browse files
test: fix NUT timeout message
1 parent 7214a57 commit 47323c5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/nut/open.nut.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ describe('test org:open command', () => {
5555
defaultOrgInstanceUrl = defaultOrg.instanceUrl as string;
5656
});
5757

58-
it('will get the correct url (harccoded)', () => {
58+
it('will get the correct url (hardcoded)', () => {
5959
const result = execCmd<OrgOpenOutput>('org open authoring-bundle --urlonly --json', { ensureExitCode: 0 })
6060
.jsonOutput!.result;
6161
assert(result);

test/nut/scratchCreate.nut.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import path from 'node:path';
1919
import { parseJsonMap } from '@salesforce/kit';
2020
import { execCmd, genUniqueString, TestSession } from '@salesforce/cli-plugins-testkit';
2121
import { assert, expect } from 'chai';
22-
import { AuthFields, Messages, Global } from '@salesforce/core';
22+
import { AuthFields, Global, Messages } from '@salesforce/core';
2323
import { ScratchCreateResponse } from '../../src/shared/orgTypes.js';
2424

2525
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
@@ -63,11 +63,11 @@ describe('env create scratch NUTs', () => {
6363
});
6464
it('prompts for client secret if client id present and times out', () => {
6565
const error = execCmd('org:create:scratch --edition developer --client-id someConnectedApp', {
66-
ensureExitCode: 'nonZero',
66+
ensureExitCode: 1,
6767
}).shellOutput;
6868
expect(error.stdout).to.include(messages.getMessage('prompt.secret'));
6969
// this is the message from the prompt library when .cancel is called on timeout
70-
expect(error.stderr).to.include('Prompt was canceled');
70+
expect(error.stderr).to.include('Prompt timed out.');
7171
});
7272
});
7373

0 commit comments

Comments
 (0)