graphite: restart collectd as well

This commit is contained in:
Girish Ramakrishnan
2021-03-23 11:01:14 -07:00
parent 32f385741a
commit 0447dce0d6
9 changed files with 61 additions and 74 deletions
+2 -2
View File
@@ -39,8 +39,8 @@ describe('shell', function () {
});
it('can sudo valid program', function (done) {
var RELOAD_NGINX_CMD = path.join(__dirname, '../src/scripts/reloadnginx.sh');
shell.sudo('test', [ RELOAD_NGINX_CMD ], {}, function (error) {
var RELOAD_NGINX_CMD = path.join(__dirname, '../src/scripts/restartservice.sh');
shell.sudo('test', [ RELOAD_NGINX_CMD, 'nginx' ], {}, function (error) {
expect(error).to.be.ok();
done();
});