Skip to content

Commit

Permalink
Fixing pipeline failures
Browse files Browse the repository at this point in the history
  • Loading branch information
DomPeliniAerospike committed Feb 15, 2024
1 parent 112f2b8 commit 0646169
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions test/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
})

Expand All @@ -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)
}
})
})
Expand Down Expand Up @@ -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 () {
Expand All @@ -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)
}
})
})
Expand Down
3 changes: 2 additions & 1 deletion test/batch_write.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit 0646169

Please sign in to comment.