chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { assert } from 'vitest'
|
||||
|
||||
import { sandboxTest, isDebug } from '../setup.js'
|
||||
import { Sandbox } from '../../src'
|
||||
|
||||
sandboxTest.skipIf(isDebug)('pause sandbox', async ({ sandbox }) => {
|
||||
await Sandbox.pause(sandbox.sandboxId)
|
||||
assert.isFalse(
|
||||
await sandbox.isRunning(),
|
||||
'Sandbox should not be running after pause'
|
||||
)
|
||||
})
|
||||
|
||||
sandboxTest.skipIf(isDebug)('resume sandbox', async ({ sandbox }) => {
|
||||
await Sandbox.pause(sandbox.sandboxId)
|
||||
assert.isFalse(
|
||||
await sandbox.isRunning(),
|
||||
'Sandbox should not be running after pause'
|
||||
)
|
||||
|
||||
await Sandbox.connect(sandbox.sandboxId)
|
||||
assert.isTrue(
|
||||
await sandbox.isRunning(),
|
||||
'Sandbox should be running after resume'
|
||||
)
|
||||
})
|
||||
Reference in New Issue
Block a user