Skip to content

Commit 92badc5

Browse files
authored
Merge branch 'main' into api-support-for-start-sandbox-with-envd-auth-secret-e2b-1930
2 parents 7dfadbf + 209e340 commit 92badc5

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

packages/js-sdk/tests/integration/template/e2b.Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
FROM e2bdev/code-interpreter:latest
22

3+
# Install stess-ng, a tool to load and stress computer systems
4+
RUN apt update
5+
RUN apt install -y stress-ng
6+
37
# Create a basic Next.js app
4-
RUN npx -y create-next-app@latest test --yes --ts --use-npm
8+
RUN npx -y create-next-app@latest basic-nextjs-app --yes --ts --use-npm
59

610
# Install dependencies
711
RUN cd basic-nextjs-app && npm install

packages/js-sdk/tests/integration/template/e2b.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
# import { Sandbox } from 'e2b'
1111
# const sandbox = await Sandbox.create('integration-test-v1')
1212

13-
team_id = "b9c07023-d095-4bdc-9634-e25d5530ba47"
14-
memory_mb = 1_024
13+
team_id = "460355b3-4f64-48f9-9a16-4442817f79f5"
14+
memory_mb = 512
1515
start_cmd = "npm run dev"
1616
dockerfile = "e2b.Dockerfile"
1717
template_name = "integration-test-v1"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ sandboxTest.skipIf(isDebug)(
5656
sandboxId: string
5757
code: number
5858
}
59-
assert.equal(json.message, 'Sandbox not found')
59+
assert.equal(json.message, 'The sandbox was not found')
6060
assert.isTrue(sandbox.sandboxId.startsWith(json.sandboxId))
61-
assert.equal(json.code, 0)
61+
assert.equal(json.code, 502)
6262
}
6363
)

0 commit comments

Comments
 (0)