1
0
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:
Salakar
2020-02-09 14:23:47 +00:00
parent 9f01198c04
commit 176bfc2101

View File

@@ -11,13 +11,21 @@ var fork = require('child_process').fork;
var redis = config.redis;
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) {
if (process.platform !== 'win32' || !process.env.CI) {
return done();
}
process.nextTick(function () {
require('cross-spawn').sync('redis-server', ['--service-stop'], {});
done();
});
});
describe('The node_redis client', function () {