You've already forked node-redis
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:
committed by
Benjamin Coe
parent
5da083322d
commit
3aaef47756
@@ -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");
|
||||
|
Reference in New Issue
Block a user