Skip to content

Commit

Permalink
use setTimeout to skip tick
Browse files Browse the repository at this point in the history
  • Loading branch information
bewest committed Aug 30, 2015
1 parent 02f09a1 commit b2cfa9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/mqtt.test.js
Expand Up @@ -23,7 +23,7 @@ describe('mqtt', function ( ) {
}
function written (data, fn) {
self.results.write(data);
fn( );
setTimeout(fn, 5);
}
self.mqtt = require('../lib/mqtt')(self.env, {entries: { persist: outputs, create: written }, devicestatus: { create: written } });
});
Expand Down

0 comments on commit b2cfa9e

Please sign in to comment.