From fc1daa7e714b0cf68ec70ea245f1b07f3feb87a6 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Tue, 19 Jul 2022 21:24:44 +0200 Subject: [PATCH] Bump path traversal test timeout (#472) Double timeout on these two tests as they sometimes time out on GitHub Actions. --- test/integration/clusterio.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/integration/clusterio.js b/test/integration/clusterio.js index 8c029e1f..cb91a631 100644 --- a/test/integration/clusterio.js +++ b/test/integration/clusterio.js @@ -628,6 +628,7 @@ describe("Integration of Clusterio", function() { await assert.rejects(execCtl("instance save copy 44 not-here.zip invalid.zip")); }); it("should reject path traversal attacks", async function() { + this.timeout(4000); await assert.rejects(execCtl("instance save copy 44 upload.zip ../traversal.zip")); await assert.rejects(execCtl("instance save copy 44 ../saves/upload.zip traversal.zip ")); }); @@ -646,6 +647,7 @@ describe("Integration of Clusterio", function() { await assert.rejects(execCtl("instance save rename 44 not-here.zip invalid.zip")); }); it("should reject path traversal attacks", async function() { + this.timeout(4000); await assert.rejects(execCtl("instance save rename 44 upload.zip ../traversal.zip")); await assert.rejects(execCtl("instance save rename 44 ../saves/upload.zip traversal.zip ")); });