Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Commit

Permalink
fix: fix annoying redis warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Coe committed May 31, 2016
1 parent a0abd13 commit ecdf049
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Session.prototype.allSessions = function (cb) {
}

Session.prototype.end = function () {
this.client.end()
this.client.end(true)
}

module.exports = Session
2 changes: 1 addition & 1 deletion test/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ describe('Session', function () {

it('returns a 500 error if something really strange happens', function (done) {
var session = new Session()
session.client.end()
session.client.end(true)
session.get('pork-chop-sandwiches', function (err, obj) {
err.statusCode.should.equal(500)
return done()
Expand Down

0 comments on commit ecdf049

Please sign in to comment.