From c5a14db8eadf40aa71549db573ba9611acfb5dea Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Thu, 22 Oct 2020 16:38:46 +0200 Subject: [PATCH] Fix path for export test Fix the path tested for the export-data command test incorrectly using the project root instead of temp/test. --- test/integration/clusterio.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/integration/clusterio.js b/test/integration/clusterio.js index 3ec94b1e..5d173d8e 100644 --- a/test/integration/clusterio.js +++ b/test/integration/clusterio.js @@ -59,8 +59,10 @@ describe("Integration of Clusterio", function() { describe("instance export-data", function() { it("exports the data", async function() { slowTest(this); + let exportPath = path.join("temp", "test", "static", "export", "locale.json"); + await fs.remove(exportPath); await execCtl("instance export-data test"); - assert(await fs.exists(path.join("static", "export", "locale.json")), "Export was not created"); + assert(await fs.exists(exportPath), "Export was not created"); await checkInstanceStatus(44, "stopped"); }); });