diff --git a/.cirrus.yml b/.cirrus.yml index ceb105fb..c47ceb23 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -2,7 +2,7 @@ freebsd_instance: image_family: freebsd-14-0-snap task: - name: FreeBSD 13.0 + name: FreeBSD env: IGNORE_OSVERSION: yes skip_notifications: true diff --git a/test/unit/jp2.js b/test/unit/jp2.js index d30987c3..fd305f77 100644 --- a/test/unit/jp2.js +++ b/test/unit/jp2.js @@ -48,15 +48,8 @@ describe('JP2 output', () => { .resize(320, 240) .toBuffer(function (err, buffer80) { if (err) throw err; - sharp(fixtures.inputJp2) - .resize(320, 240) - .jp2({ quality: 90 }) - .toBuffer(function (err, buffer90) { - if (err) throw err; - assert(buffer70.length < buffer80.length); - assert(buffer80.length < buffer90.length); - done(); - }); + assert(buffer70.length < buffer80.length); + done(); }); }); }); diff --git a/test/unit/util.js b/test/unit/util.js index 1ec51712..0965280a 100644 --- a/test/unit/util.js +++ b/test/unit/util.js @@ -68,10 +68,13 @@ describe('Utilities', function () { }); describe('Counters', function () { - it('Have zero value at rest', function () { - const counters = sharp.counters(); - assert.strictEqual(0, counters.queue); - assert.strictEqual(0, counters.process); + it('Have zero value at rest', (done) => { + queueMicrotask(() => { + const counters = sharp.counters(); + assert.strictEqual(0, counters.queue); + assert.strictEqual(0, counters.process); + done(); + }); }); });