1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Fix bug in mocha tests Redis shutdown which expected exit code to eq 0.

Move a miscategorized select test into the correct describe.
This commit is contained in:
Erin Spiceland
2015-07-14 09:45:48 -05:00
committed by Benjamin Coe
parent 5da083322d
commit 3aaef47756
3 changed files with 37 additions and 34 deletions

View File

@@ -23,7 +23,9 @@ module.exports = {
stop: function (done) {
rp.once("exit", function (code) {
var error = null;
if (code !== 0) error = Error('failed to shutdown redis');
if (code !== null && code !== 0) {
error = Error('Redis shutdown failed with code ' + code);
}
return done(error);
});
rp.kill("SIGINT");