Skip to content

Commit

Permalink
only set initial value of LONG_CACHE once
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Jun 11, 2018
1 parent af74b90 commit a9d06bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/request-handler.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ describe('The request handler', function() {
before(analytics.load);

let camp;
let initialLongCache;
const initialLongCache = process.env.LONG_CACHE;

beforeEach(function (done) {
camp = Camp.start({ port: config.port, hostname: '::' });
camp.on('listening', () => done());
initialLongCache = process.env.LONG_CACHE;
process.env.LONG_CACHE = initialLongCache;
});
afterEach(function (done) {
clearRequestCache();
if (camp) {
camp.close(() => done());
camp = null;
}
process.env.LONG_CACHE = initialLongCache;
});

describe('the options object calling style', function() {
Expand Down

0 comments on commit a9d06bd

Please sign in to comment.