aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Alex Lam S.L <alexlamsl@gmail.com> 2023-05-24 18:33:18 +0300
committerGravatar GitHub <noreply@github.com> 2023-05-24 08:33:18 -0700
commit31c967206ab0d3cb5c0e4bd636fa9668e778ec61 (patch)
treec933ac7d7132a00109000e5da0b3942e2221bc2f
parentc3d402ce47e273b60e3a37164a6ba2be6e1eee5d (diff)
downloadbun-31c967206ab0d3cb5c0e4bd636fa9668e778ec61.tar.gz
bun-31c967206ab0d3cb5c0e4bd636fa9668e778ec61.tar.zst
bun-31c967206ab0d3cb5c0e4bd636fa9668e778ec61.zip
extend test time-outs (#3048)
- avoid intermittent failures due to network latencies
-rw-r--r--test/cli/install/bun-add.test.ts2
-rw-r--r--test/cli/install/bun-install.test.ts12
2 files changed, 7 insertions, 7 deletions
diff --git a/test/cli/install/bun-add.test.ts b/test/cli/install/bun-add.test.ts
index 95a201295..66ad6afa2 100644
--- a/test/cli/install/bun-add.test.ts
+++ b/test/cli/install/bun-add.test.ts
@@ -1000,7 +1000,7 @@ it("should handle Git URL in dependencies (SCP-style)", async () => {
expect(await exited2).toBe(0);
expect(urls.sort()).toEqual([]);
expect(requested).toBe(0);
-});
+}, 20000);
it("should prefer optionalDependencies over dependencies of the same name", async () => {
const urls: string[] = [];
diff --git a/test/cli/install/bun-install.test.ts b/test/cli/install/bun-install.test.ts
index f423c761a..91c15c178 100644
--- a/test/cli/install/bun-install.test.ts
+++ b/test/cli/install/bun-install.test.ts
@@ -2685,7 +2685,7 @@ it("should handle Git URL in dependencies", async () => {
const package_json = await file(join(package_dir, "node_modules", "uglify-js", "package.json")).json();
expect(package_json.name).toBe("uglify-js");
await access(join(package_dir, "bun.lockb"));
-});
+}, 20000);
it("should handle Git URL in dependencies (SCP-style)", async () => {
const urls: string[] = [];
@@ -2746,7 +2746,7 @@ it("should handle Git URL in dependencies (SCP-style)", async () => {
const package_json = await file(join(package_dir, "node_modules", "uglify", "package.json")).json();
expect(package_json.name).toBe("uglify-js");
await access(join(package_dir, "bun.lockb"));
-});
+}, 20000);
it("should handle Git URL with committish in dependencies", async () => {
const urls: string[] = [];
@@ -2809,7 +2809,7 @@ it("should handle Git URL with committish in dependencies", async () => {
expect(package_json.name).toBe("uglify-js");
expect(package_json.version).toBe("3.14.1");
await access(join(package_dir, "bun.lockb"));
-});
+}, 20000);
it("should fail on invalid Git URL", async () => {
const urls: string[] = [];
@@ -2887,7 +2887,7 @@ it("should fail on Git URL with invalid committish", async () => {
} catch (err: any) {
expect(err.code).toBe("ENOENT");
}
-});
+}, 20000);
it("should de-duplicate committish in Git URLs", async () => {
const urls: string[] = [];
@@ -2974,7 +2974,7 @@ it("should de-duplicate committish in Git URLs", async () => {
expect(ver_json.name).toBe("uglify-js");
expect(ver_json.version).toBe("3.14.1");
await access(join(package_dir, "bun.lockb"));
-});
+}, 20000);
it("should handle Git URL with existing lockfile", async () => {
const urls: string[] = [];
@@ -3169,7 +3169,7 @@ cache = false
join("..", "uglify-js", "bin", "uglifyjs"),
);
await access(join(package_dir, "bun.lockb"));
-});
+}, 20000);
it("should prefer optionalDependencies over dependencies of the same name", async () => {
const urls: string[] = [];