From 06461696003da2336a0a8307754a92826f13ef1b Mon Sep 17 00:00:00 2001 From: Dominic Pelini <111786059+DomPeliniAerospike@users.noreply.github.com> Date: Thu, 15 Feb 2024 08:36:16 -0700 Subject: [PATCH] Fixing pipeline failures --- test/admin.js | 8 ++++---- test/batch_write.js | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/test/admin.js b/test/admin.js index 015209ad..6ba31666 100644 --- a/test/admin.js +++ b/test/admin.js @@ -440,7 +440,7 @@ context('admin commands', async function () { // Should fail, assert failure if error is not returned. expect(1).to.equal(2) } catch (error) { - expect(error).to.exist().and.have.property('code', Aerospike.status.INVALID_ROLE) + expect(error).to.exist.and.have.property('code', Aerospike.status.INVALID_ROLE) } }) @@ -452,7 +452,7 @@ context('admin commands', async function () { // Should fail, assert failure if error is not returned. expect(1).to.equal(2) } catch (error) { - expect(error).to.exist().and.have.property('code', Aerospike.status.INVALID_ROLE) + expect(error).to.exist.and.have.property('code', Aerospike.status.INVALID_ROLE) } }) }) @@ -494,7 +494,7 @@ context('admin commands', async function () { // Should fail, assert failure if error is not returned. expect(1).to.equal(2) } catch (error) { - expect(error).to.exist().and.have.property('code', Aerospike.status.INVALID_USER) + expect(error).to.exist.and.have.property('code', Aerospike.status.INVALID_USER) } }) it('With policy', async function () { @@ -505,7 +505,7 @@ context('admin commands', async function () { // Should fail, assert failure if error is not returned. expect(1).to.equal(2) } catch (error) { - expect(error).to.exist().and.have.property('code', Aerospike.status.INVALID_USER) + expect(error).to.exist.and.have.property('code', Aerospike.status.INVALID_USER) } }) }) diff --git a/test/batch_write.js b/test/batch_write.js index 958a5aac..5d73cfc6 100644 --- a/test/batch_write.js +++ b/test/batch_write.js @@ -515,7 +515,7 @@ describe('client.batchWrite()', function () { context('with BatchParentPolicy', function () { helper.skipUnlessVersion('>= 6.0.0', this) - + this.timeout(10000) it('returns list and map bins as byte buffers', async function () { const batch = [{ type: batchType.BATCH_READ, @@ -530,6 +530,7 @@ describe('client.batchWrite()', function () { } } + const dummyClient = await Aerospike.connect(config) const results = await dummyClient.batchWrite(batch) const bins = results[0].record.bins