Browse Source

bla

fix-windows-spawn
Ruben Bridgewater 9 years ago
parent
commit
1c7c6dbdf1
  1. 4
      test/lib/redis-process.js

4
test/lib/redis-process.js

@ -54,8 +54,9 @@ module.exports = {
confFile = confFile.replace('.conf', '.win32.conf'); confFile = confFile.replace('.conf', '.win32.conf');
redis = 'redis-64\\tools\\redis-server.exe'; redis = 'redis-64\\tools\\redis-server.exe';
} }
var rp = spawn.sync(redis, [confFile], { stdio: 'inherit' }); var rp = spawn(redis, [confFile], { stdio: 'inherit' });
waitForRedis(true, function () {
done(null, { done(null, {
spawnFailed: function () { spawnFailed: function () {
return false; // Remove if as soon as it's not necessary anymore return false; // Remove if as soon as it's not necessary anymore
@ -73,5 +74,6 @@ module.exports = {
rp.kill('SIGTERM'); rp.kill('SIGTERM');
} }
}); });
}, port);
} }
}; };

Loading…
Cancel
Save