Fix broken next test:

Now after ran the test MM_PORT of test case for change of port the
enviroment variable is deleted.
This commit is contained in:
Rodrigo Ramírez Norambuena 2017-03-30 16:32:51 -03:00
parent 19b9d3737e
commit ef9157174c

View File

@ -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);