This reverts commit 567f8a7583
.
This commit is contained in:
parent
2963e377ae
commit
98eee52fac
1 changed files with 4 additions and 5 deletions
|
@ -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()
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue