From ef9157174c0d38e280c85349298291c3da04af58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Ram=C3=ADrez=20Norambuena?= Date: Thu, 30 Mar 2017 16:32:51 -0300 Subject: [PATCH] Fix broken next test: Now after ran the test MM_PORT of test case for change of port the enviroment variable is deleted. --- tests/e2e/port_config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/e2e/port_config.js b/tests/e2e/port_config.js index e44a2207..44c6b498 100644 --- a/tests/e2e/port_config.js +++ b/tests/e2e/port_config.js @@ -36,6 +36,10 @@ describe("port directive configuration", function () { // Set config sample for use in this test process.env.MM_CONFIG_FILE = "tests/configs/port_8090.js"; }); + + after(function(){ + delete process.env.MM_PORT; + }); it("should return 200", function (done) { request.get("http://localhost:8100", function (err, res, body) { expect(res.statusCode).to.equal(200);