Skip to content

Commit 7c32d39

Browse files
committed
Account for transcoding in chained batch test
Follow-Up-To: 86bd271 Category: none
1 parent 86bd271 commit 7c32d39

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/chained-batch-test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,10 @@ exports.batch = function (test, testCommon) {
244244

245245
db.once('write', function (operations) {
246246
t.same(operations, [
247-
{ type: 'put', key: 'a', value: 'a', keyEncoding: utf8, valueEncoding: json, encodedKey: 'a', encodedValue: '"a"' },
248-
{ type: 'put', key: 'b', value: 'b', keyEncoding: utf8, valueEncoding: utf8, encodedKey: 'b', encodedValue: 'b' },
249-
{ type: 'put', key: '"c"', value: 'c', keyEncoding: utf8, valueEncoding: utf8, encodedKey: '"c"', encodedValue: 'c' },
250-
{ type: 'del', key: 'c', keyEncoding: json, encodedKey: '"c"', arbitraryOption: true }
247+
{ type: 'put', key: 'a', value: 'a', keyEncoding: utf8, valueEncoding: json, encodedKey: utf8.encode('a'), encodedValue: utf8.encode('"a"') },
248+
{ type: 'put', key: 'b', value: 'b', keyEncoding: utf8, valueEncoding: utf8, encodedKey: utf8.encode('b'), encodedValue: utf8.encode('b') },
249+
{ type: 'put', key: '"c"', value: 'c', keyEncoding: utf8, valueEncoding: utf8, encodedKey: utf8.encode('"c"'), encodedValue: utf8.encode('c') },
250+
{ type: 'del', key: 'c', keyEncoding: json, encodedKey: utf8.encode('"c"'), arbitraryOption: true }
251251
])
252252
})
253253

0 commit comments

Comments
 (0)