diff --git a/spec/api-app-spec.js b/spec/api-app-spec.js index 37c5520a1d27..955b64586214 100644 --- a/spec/api-app-spec.js +++ b/spec/api-app-spec.js @@ -795,8 +795,7 @@ describe('app module', () => { }) }) - // TODO(marshallofsound): [Ch66] Failed on Windows x64 + ia32 on CI, passes locally - xdescribe('getAppMetrics() API', () => { + describe('getAppMetrics() API', () => { it('returns memory and cpu stats of all running electron processes', () => { const appMetrics = app.getAppMetrics() expect(appMetrics).to.be.an('array').and.have.lengthOf.at.least(1, 'App memory info object is not > 0') @@ -804,8 +803,13 @@ describe('app module', () => { const types = [] for (const {memory, pid, type, cpu} of appMetrics) { expect(memory.workingSetSize).to.be.above(0, 'working set size is not > 0') - expect(memory.privateBytes).to.be.above(0, 'private bytes is not > 0') - expect(memory.sharedBytes).to.be.above(0, 'shared bytes is not > 0') + + // windows causes failures here due to CI server configuration + if (process.platform !== 'win32') { + expect(memory.privateBytes).to.be.above(0, 'private bytes is not > 0') + expect(memory.sharedBytes).to.be.above(0, 'shared bytes is not > 0') + } + expect(pid).to.be.above(0, 'pid is not > 0') expect(type).to.be.a('string').that.is.not.empty()