Skip to content

Commit

Permalink
Account for transcoding in chained batch test
Browse files Browse the repository at this point in the history
Follow-Up-To: 86bd271
Category: none
  • Loading branch information
vweevers committed Jan 5, 2025
1 parent 86bd271 commit 7c32d39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/chained-batch-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ exports.batch = function (test, testCommon) {

db.once('write', function (operations) {
t.same(operations, [
{ type: 'put', key: 'a', value: 'a', keyEncoding: utf8, valueEncoding: json, encodedKey: 'a', encodedValue: '"a"' },
{ type: 'put', key: 'b', value: 'b', keyEncoding: utf8, valueEncoding: utf8, encodedKey: 'b', encodedValue: 'b' },
{ type: 'put', key: '"c"', value: 'c', keyEncoding: utf8, valueEncoding: utf8, encodedKey: '"c"', encodedValue: 'c' },
{ type: 'del', key: 'c', keyEncoding: json, encodedKey: '"c"', arbitraryOption: true }
{ type: 'put', key: 'a', value: 'a', keyEncoding: utf8, valueEncoding: json, encodedKey: utf8.encode('a'), encodedValue: utf8.encode('"a"') },
{ type: 'put', key: 'b', value: 'b', keyEncoding: utf8, valueEncoding: utf8, encodedKey: utf8.encode('b'), encodedValue: utf8.encode('b') },
{ type: 'put', key: '"c"', value: 'c', keyEncoding: utf8, valueEncoding: utf8, encodedKey: utf8.encode('"c"'), encodedValue: utf8.encode('c') },
{ type: 'del', key: 'c', keyEncoding: json, encodedKey: utf8.encode('"c"'), arbitraryOption: true }
])
})

Expand Down

0 comments on commit 7c32d39

Please sign in to comment.