mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
31 lines
522 B
JavaScript
31 lines
522 B
JavaScript
|
|
const Sysinfos = require('../../lib/Sysinfo/SystemInfo.js')
|
|
const should = require('should');
|
|
const path = require('path')
|
|
|
|
describe('Sysinfos', function() {
|
|
var sysinfo
|
|
|
|
after(() => {
|
|
sysinfo.kill()
|
|
})
|
|
|
|
it('should start a failing app in fork mode', function(done) {
|
|
sysinfo = new Sysinfos()
|
|
sysinfo.fork()
|
|
done()
|
|
})
|
|
|
|
it('should query procs', function(done) {
|
|
|
|
setTimeout(() => {
|
|
sysinfo.query((err, data) => {
|
|
console.log(data)
|
|
done()
|
|
})
|
|
|
|
}, 500)
|
|
})
|
|
|
|
})
|