diff --git a/test/unit/specs/logging.js b/test/unit/specs/logging.js index f2ca9f4c..9772652a 100644 --- a/test/unit/specs/logging.js +++ b/test/unit/specs/logging.js @@ -246,7 +246,7 @@ describe('', function() { logger.debug({foo: 'bar'}) logger.debug(['foo', 123, true, false, null, undefined, { bar: 123 }]) - await Utils.wait(1100) + await Backendless.Logging.flush() expect(req.body.map(b => b.message)).to.deep.equal([ '0',