Revert "fix: re-enable power monitor test (#14458)" (#14506)

This reverts commit 567f8a7583.
This commit is contained in:
Alexey Kuzmin 2018-09-09 02:37:19 +02:00 committed by Charles Kerr
parent 2963e377ae
commit 98eee52fac

View file

@ -16,7 +16,8 @@ chai.use(dirtyChai)
const skip = process.platform !== 'linux' || !process.env.DBUS_SYSTEM_BUS_ADDRESS
describe('powerMonitor', () => {
// TODO(alexeykuzmin): [Ch66] Crashes on Linux ia32. Fix it and enable back.
xdescribe('powerMonitor', () => {
let logindMock, dbusMockPowerMonitor, getCalls, emitSignal, reset
if (!skip) {
@ -30,9 +31,7 @@ describe('powerMonitor', () => {
reset = Promise.promisify(logindMock.Reset, {context: logindMock})
})
after(async () => {
await reset()
})
after(reset)
}
(skip ? describe.skip : describe)('when powerMonitor module is loaded with dbus mock', () => {
@ -131,7 +130,7 @@ describe('powerMonitor', () => {
describe('powerMonitor.querySystemIdleState', () => {
it('notify current system idle state', done => {
powerMonitor.querySystemIdleState(1, idleState => {
expect(idleState).to.equal('idle')
expect(idleState).to.be.true()
done()
})
})