Skip to content

Commit 34970da

Browse files
authored
Use base e2b SDK in tests that don't need code-interpreter (#2204)
* Use base e2b SDK in tests that don't need code-interpreter internet-works.ts, time-is-synchronized, and utils.ts only use sandbox.commands.run() and sandbox lifecycle methods, which are available in the base e2b SDK. Only run-code.ts and snapshot-and-resume.ts actually need code-interpreter for runCode(). * Update e2b packages to latest versions and regenerate bun.lock Update @e2b/code-interpreter to ^2.4.0 and e2b to ^2.15.0. Also regenerates bun.lock to fix frozen-lockfile CI failures.
1 parent 1614b01 commit 34970da

5 files changed

Lines changed: 31 additions & 22 deletions

File tree

tests/periodic-test/bun.lock

Lines changed: 26 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/periodic-test/internet-works.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Sandbox } from "@e2b/code-interpreter";
1+
import Sandbox from "e2b";
22
import { DEBUG_TIMEOUT_MS, log, runTestWithSandbox } from "./utils.ts";
33

44
log("Starting sandbox logs test");

tests/periodic-test/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"type": "module",
66
"dependencies": {
77
"@e2b/cli": "^2.7.3",
8-
"@e2b/code-interpreter": "^2.3.3"
8+
"@e2b/code-interpreter": "^2.4.0",
9+
"e2b": "^2.15.0"
910
},
1011
"devDependencies": {
1112
"@types/bun": "^1.3.2"

tests/periodic-test/time-is-synchronized/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Sandbox } from "@e2b/code-interpreter";
1+
import Sandbox from "e2b";
22
import { readFile, rm } from "fs/promises";
33

44
import { DEBUG_TIMEOUT_MS, log, runTestWithSandbox } from "../utils.ts";

tests/periodic-test/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Sandbox } from "@e2b/code-interpreter";
1+
import Sandbox from "e2b";
22

33
export const DEBUG_TIMEOUT_MS = 30 * 60 * 1000; // 30 minutes
44

0 commit comments

Comments
 (0)