Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Commit

Permalink
Bump standard from 14.3.4 to 15.0.0 (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot-preview[bot] authored Oct 24, 2020
1 parent fe54e73 commit d39e232
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"prebuildify-cross": "^4.0.0",
"readfiletree": "^1.0.0",
"rimraf": "^3.0.0",
"standard": "^14.0.0",
"standard": "^15.0.0",
"tape": "^4.10.0",
"tempy": "^0.3.0"
},
Expand Down
30 changes: 15 additions & 15 deletions test/leak-tester-batch.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,24 @@ function print () {

const run = CHAINED
? function () {
const batch = db.batch()
const batch = db.batch()

for (let i = 0; i < 100; i++) {
let key = 'long key to test memory usage ' + String(Math.floor(Math.random() * 10000000))
if (BUFFERS) key = Buffer.from(key)
let value = crypto.randomBytes(1024)
if (!BUFFERS) value = value.toString('hex')
batch.put(key, value)
}
for (let i = 0; i < 100; i++) {
let key = 'long key to test memory usage ' + String(Math.floor(Math.random() * 10000000))
if (BUFFERS) key = Buffer.from(key)
let value = crypto.randomBytes(1024)
if (!BUFFERS) value = value.toString('hex')
batch.put(key, value)
}

batch.write(function (err) {
assert(!err)
process.nextTick(run)
})
batch.write(function (err) {
assert(!err)
process.nextTick(run)
})

writeCount++
print()
}
writeCount++
print()
}
: function () {
const batch = []

Expand Down

0 comments on commit d39e232

Please sign in to comment.