Bump path traversal test timeout (#472)

Double timeout on these two tests as they sometimes time out on GitHub
Actions.
This commit is contained in:
Hornwitser authored and GitHub committed 2022-07-19 21:24:44 +02:00
1 parent e234d3db36
commit fc1daa7e71
1 file changed
+2
+2
View File
@@ -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 "));
});