Skip to content

Commit 1349c05

Browse files
committed
test: move session up [sb-nuts]
1 parent 2dffc6d commit 1349c05

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/nut/commands/force/org/status.sandboxNut.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ describe('test sandbox status command', () => {
4545
let username: string;
4646

4747
before(async () => {
48+
session = await TestSession.create({
49+
project: {
50+
sourceDir: path.join(process.cwd(), 'test', 'nut', 'commands', 'force', 'org'),
51+
},
52+
});
4853
username = ensureString(env.getString('TESTKIT_HUB_USERNAME'));
4954
const queryStr =
5055
"SELECT SandboxName FROM SandboxProcess WHERE Status != 'E' and Status != 'D' ORDER BY CreatedDate DESC LIMIT 1";
@@ -54,11 +59,6 @@ describe('test sandbox status command', () => {
5459
const queryResult = (await connection.tooling.query(queryStr)) as { records: SandboxProcessObject[] };
5560
expect(queryResult?.records?.length).to.equal(1);
5661
sandboxName = queryResult?.records[0]?.SandboxName;
57-
session = await TestSession.create({
58-
project: {
59-
sourceDir: path.join(process.cwd(), 'test', 'nut', 'commands', 'force', 'org'),
60-
},
61-
});
6262
});
6363

6464
afterEach(() => {

0 commit comments

Comments
 (0)