Skip to content

Commit

Permalink
fix corruption test
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed May 23, 2018
1 parent 56e2e7e commit 2f7173c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/corruption.js
Expand Up @@ -32,6 +32,7 @@ tape('feed with corrupted inflate generates error', function (t) {
t.error(err, 'no error')
var val = messages.Entry.decode(data)
val.inflate = 1 // Introduce corruption
val.deleted = undefined // To keep the same size
var corruptData = messages.Entry.encode(val)
var storage = a.source._storage
storage.dataOffset(index, [], function (err, offset, size) {
Expand Down

0 comments on commit 2f7173c

Please sign in to comment.