mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-20 15:43:13 +09:00
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:
1 parent
e234d3db36
commit
fc1daa7e71
1 file changed
+2
@@ -628,6 +628,7 @@ describe("Integration of Clusterio", function() {
|
|||||||
await assert.rejects(execCtl("instance save copy 44 not-here.zip invalid.zip"));
|
await assert.rejects(execCtl("instance save copy 44 not-here.zip invalid.zip"));
|
||||||
});
|
});
|
||||||
it("should reject path traversal attacks", async function() {
|
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 upload.zip ../traversal.zip"));
|
||||||
await assert.rejects(execCtl("instance save copy 44 ../saves/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"));
|
await assert.rejects(execCtl("instance save rename 44 not-here.zip invalid.zip"));
|
||||||
});
|
});
|
||||||
it("should reject path traversal attacks", async function() {
|
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 upload.zip ../traversal.zip"));
|
||||||
await assert.rejects(execCtl("instance save rename 44 ../saves/upload.zip traversal.zip "));
|
await assert.rejects(execCtl("instance save rename 44 ../saves/upload.zip traversal.zip "));
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user