Skip to content

Commit cd74ab5

Browse files
committed
fix: handle multiple sandbox processes in a resumable state
1 parent 6782771 commit cd74ab5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/unit/org/resumeSandbox.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ describe('[org resume sandbox]', () => {
7979
});
8080
stubMethod(sandbox, Org, 'create').resolves(Org.prototype);
8181
stubMethod(sandbox, Org.prototype, 'getUsername').returns(prodOrgUsername);
82-
const sbxCreateNotComplete = new SfError('sbx create not complete', 'sandboxCreateNotComplete');
8382
const inProgSandboxProcessObj = Object.assign({}, sandboxProcessObj, {
8483
Status: 'In Progress',
8584
Id: '0GR4p000000U8EMZZZ',
@@ -91,7 +90,7 @@ describe('[org resume sandbox]', () => {
9190
inProgSandboxProcessObj,
9291
sandboxProcessObj,
9392
]);
94-
throw sbxCreateNotComplete;
93+
throw new SfError('sbx create not complete', 'sandboxCreateNotComplete');
9594
});
9695

9796
try {

0 commit comments

Comments
 (0)