feat: add serviceName to 'child-process-gone' / app.getAppMetrics() (#25975)
This commit is contained in:
parent
c27e5fdbb6
commit
decb1eb87b
7 changed files with 20 additions and 3 deletions
|
@ -1176,6 +1176,10 @@ describe('app module', () => {
|
|||
expect(entry.memory).to.have.property('workingSetSize').that.is.greaterThan(0);
|
||||
expect(entry.memory).to.have.property('peakWorkingSetSize').that.is.greaterThan(0);
|
||||
|
||||
if (entry.type === 'Utility' || entry.type === 'GPU') {
|
||||
expect(entry.serviceName).to.be.a('string').that.does.not.equal('');
|
||||
}
|
||||
|
||||
if (entry.type === 'Utility') {
|
||||
expect(entry).to.have.property('name').that.is.a('string');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue