You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
tests: add comments about travis windows issue workaround
This commit is contained in:
@@ -11,13 +11,21 @@ var fork = require('child_process').fork;
|
|||||||
var redis = config.redis;
|
var redis = config.redis;
|
||||||
var client;
|
var client;
|
||||||
|
|
||||||
|
// Currently Travis Windows builds hang after completing if any processes are still running,
|
||||||
|
// we shutdown redis-server after all tests complete (can't do this in a
|
||||||
|
// `after_script` Travis hook as it hangs before the `after` life cycles)
|
||||||
|
// to workaround the issue.
|
||||||
|
//
|
||||||
|
// See: https://github.com/travis-ci/travis-ci/issues/8082
|
||||||
after(function (done) {
|
after(function (done) {
|
||||||
if (process.platform !== 'win32' || !process.env.CI) {
|
if (process.platform !== 'win32' || !process.env.CI) {
|
||||||
return done();
|
return done();
|
||||||
}
|
}
|
||||||
|
process.nextTick(function () {
|
||||||
require('cross-spawn').sync('redis-server', ['--service-stop'], {});
|
require('cross-spawn').sync('redis-server', ['--service-stop'], {});
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
describe('The node_redis client', function () {
|
describe('The node_redis client', function () {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user