Skip to content

Commit 004caee

Browse files
committed
disable connect to non-running sandbox test for local envd bc we dont have proxy logic there
1 parent 02161bd commit 004caee

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

packages/js-sdk/tests/sandbox/connect.test.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { assert, test } from 'vitest'
22

3-
import sandbox, { Sandbox } from '../../src'
3+
import { Sandbox } from '../../src'
44
import { isDebug, sandboxTest, template } from '../setup.js'
55

66
test('connect', async () => {
@@ -20,12 +20,15 @@ test('connect', async () => {
2020
}
2121
})
2222

23-
sandboxTest('connect to non-running sandbox', async ({ sandbox }) => {
24-
const isRunning = await sandbox.isRunning()
25-
assert.isTrue(isRunning)
26-
await sandbox.kill()
23+
sandboxTest.skipIf(isDebug)(
24+
'connect to non-running sandbox',
25+
async ({ sandbox }) => {
26+
const isRunning = await sandbox.isRunning()
27+
assert.isTrue(isRunning)
28+
await sandbox.kill()
2729

28-
const sbxConnection = await Sandbox.connect(sandbox.sandboxId)
29-
const isRunning2 = await sbxConnection.isRunning()
30-
assert.isFalse(isRunning2)
31-
})
30+
const sbxConnection = await Sandbox.connect(sandbox.sandboxId)
31+
const isRunning2 = await sbxConnection.isRunning()
32+
assert.isFalse(isRunning2)
33+
}
34+
)

0 commit comments

Comments
 (0)