mirror of
https://github.com/abrendan/MicDropMessages.git
synced 2025-08-25 22:12:02 +02:00
Initial commit
This commit is contained in:
17
node_modules/connect-redis/test/redis-server.js
generated
vendored
Normal file
17
node_modules/connect-redis/test/redis-server.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
var P = require('bluebird');
|
||||
var spawn = require('child_process').spawn;
|
||||
var redisSrv;
|
||||
var port = exports.port = 18543;
|
||||
|
||||
exports.connect = function () {
|
||||
redisSrv = spawn('redis-server', [
|
||||
'--port', port,
|
||||
'--loglevel', 'notice',
|
||||
], { stdio: 'inherit' });
|
||||
return P.delay(1500);
|
||||
};
|
||||
|
||||
exports.disconnect = function () {
|
||||
redisSrv.kill('SIGKILL');
|
||||
return P.resolve();
|
||||
};
|
Reference in New Issue
Block a user