Skip to content

Commit 9d037bd

Browse files
Modified large file test
1 parent 12d84a2 commit 9d037bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ tape('hex encoding', function (t) {
8787
tape('call digest for more than MAX_UINT32 bits of data', function (t) {
8888
var _hash = crypto.createHash('sha1')
8989
var hash = new Sha1()
90-
var bigData = Buffer.alloc(Math.pow(2, 32) / 8)
90+
var bigData = Buffer.alloc((Math.pow(2, 32) + Math.pow(2,31))/ 8)
9191

9292
hash.update(bigData)
9393
_hash.update(bigData)

0 commit comments

Comments
 (0)