You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
Windows fixes
Skip redis process spawn on windows for now
This commit is contained in:
@@ -5,6 +5,11 @@ var config = require("./lib/config");
|
||||
var helper = require('./helper');
|
||||
var redis = config.redis;
|
||||
|
||||
if (process.platform === 'win32') {
|
||||
// TODO: Fix redis process spawn on windows
|
||||
return;
|
||||
}
|
||||
|
||||
describe("rename commands", function () {
|
||||
before(function (done) {
|
||||
helper.stopRedis(function () {
|
||||
@@ -18,6 +23,7 @@ describe("rename commands", function () {
|
||||
var client = null;
|
||||
|
||||
beforeEach(function(done) {
|
||||
if (helper.redisProcess().spawnFailed()) return done();
|
||||
client = redis.createClient({
|
||||
rename_commands: {
|
||||
set: '807081f5afa96845a02816a28b7258c3',
|
||||
@@ -32,6 +38,7 @@ describe("rename commands", function () {
|
||||
});
|
||||
|
||||
afterEach(function () {
|
||||
if (helper.redisProcess().spawnFailed()) return;
|
||||
client.end(true);
|
||||
});
|
||||
|
||||
@@ -132,6 +139,7 @@ describe("rename commands", function () {
|
||||
});
|
||||
|
||||
after(function (done) {
|
||||
if (helper.redisProcess().spawnFailed()) return done();
|
||||
helper.stopRedis(function () {
|
||||
helper.startRedis('./conf/redis.conf', done);
|
||||
});
|
||||
|
Reference in New Issue
Block a user