Add process view
This commit is contained in:
@@ -4,6 +4,10 @@ import { isProcessCollectorEnabled, listProcStats } from '../server/services/col
|
||||
test('isProcessCollectorEnabled', (t) => {
|
||||
const prev = process.env.PEARDATA_PROCESSES
|
||||
delete process.env.PEARDATA_PROCESSES
|
||||
// Default on for Linux hosts
|
||||
if (process.platform === 'linux') t.ok(isProcessCollectorEnabled())
|
||||
else t.absent(isProcessCollectorEnabled())
|
||||
process.env.PEARDATA_PROCESSES = '0'
|
||||
t.absent(isProcessCollectorEnabled())
|
||||
process.env.PEARDATA_PROCESSES = '1'
|
||||
t.ok(isProcessCollectorEnabled())
|
||||
|
||||
Reference in New Issue
Block a user