Skip to content

Commit

Permalink
[CLIENT-2223] Improve the BatchOperate test
Browse files Browse the repository at this point in the history
  • Loading branch information
khaf committed May 8, 2024
1 parent 5fe2fac commit 04b53e6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions batch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,15 +298,10 @@ var _ = gg.Describe("Aerospike", func() {
gm.Expect(err).ToNot(gm.HaveOccurred())
gm.Expect(exists).To(gm.BeTrue())

brecs = []as.BatchRecordIfc{op1, op2}
brecs = []as.BatchRecordIfc{op2}
err = client.BatchOperate(bpolicy, brecs)
gm.Expect(err).ToNot(gm.HaveOccurred())

gm.Expect(op1.BatchRec().Err).ToNot(gm.HaveOccurred())
gm.Expect(op1.BatchRec().ResultCode).To(gm.Equal(types.OK))
gm.Expect(op1.BatchRec().Record.Bins).To(gm.Equal(as.BinMap{"bin1": nil, "bin2": nil}))
gm.Expect(op1.BatchRec().InDoubt).To(gm.BeFalse())

gm.Expect(op2.BatchRec().Err).ToNot(gm.HaveOccurred())
gm.Expect(op2.BatchRec().ResultCode).To(gm.Equal(types.OK))
gm.Expect(op2.BatchRec().Record.Bins).To(gm.Equal(as.BinMap{}))
Expand Down

0 comments on commit 04b53e6

Please sign in to comment.