Skip to content

Commit

Permalink
fix snapshot http server test
Browse files Browse the repository at this point in the history
  • Loading branch information
0div committed Dec 16, 2024
1 parent 7bab1ab commit 1d9bee9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/js-sdk/tests/sandbox/snapshot.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

import { assert } from 'vitest'

import { Sandbox } from '../../src'
Expand Down Expand Up @@ -100,7 +101,9 @@ sandboxTest.skipIf(isDebug)('pause and resume a sandbox with http server', async
await sandbox.commands.run('python3 -m http.server 8000', { background: true })

let url = await sandbox.getHost(8000)
console.log(url)

await new Promise(resolve => setTimeout(resolve, 3000))

const response1 = await fetch(`https://${url}`)
assert.equal(response1.status, 200)

Expand Down

0 comments on commit 1d9bee9

Please sign in to comment.