Skip to content

Commit

Permalink
Fixed getKey issue in bindingtester to match old behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
josephg committed Apr 8, 2020
1 parent fd6d592 commit f807eed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/bindingtester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ const makeMachine = (db: Database, initialName: Buffer) => {
const keySel = await popSelector()
const prefix = await popBuffer()

const result = (await oper.getKey(keySel)) as Buffer
const result = ((await oper.getKey(keySel)) || Buffer.from([])) as Buffer

// if (verbose) {
// console.log('get_key prefix', nodeUtil.inspect(prefix.toString('ascii')), result!.compare(prefix))
// console.log('get_key result', nodeUtil.inspect(result!.toString('ascii')), result!.compare(prefix))
Expand Down

0 comments on commit f807eed

Please sign in to comment.