Skip to content

Commit

Permalink
Test workflow fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
animetosho committed Aug 30, 2023
1 parent d56cc99 commit 403737c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
fail-fast: false
matrix:
include:
- version: '0.10.40'
- version: '0.10.48'
flags: ''
python2: true
- version: '4.9.1'
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
steps:
- uses: ilammy/setup-nasm@v1
- uses: petarpetrovt/[email protected]
sdeVersion: 8.69.1
with:
sdeVersion: 8.69.1
- uses: actions/checkout@v3
- run: |
mkdir test\gf16\build
Expand Down
8 changes: 6 additions & 2 deletions test/par-compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,17 @@ console.log('Creating random input files...');
function writeRndFile(name, size) {
if(skipFileCreate && fs.existsSync(tmpDir + name)) return;
var fd = fs.openSync(tmpDir + name, 'w');
var rand = require('crypto').createCipheriv('rc4', 'my_incredibly_strong_password' + name, '');
var rand = crypto.createCipheriv('rc4', 'my_incredibly_strong_password' + name, '');
rand.setAutoPadding(false);
var nullBuf = allocBuffer(1024*16);
nullBuf.fill(0);
var written = 0;
while(written < size) {
var b = bufferSlice.call(rand.update(nullBuf), 0, Math.min(1024*16, size-written));
var b = rand.update(nullBuf);
if(b.subarray)
b = bufferSlice.call(b, 0, Math.min(1024*16, size-written));
else // on Node v0.10.x, rand is a SlowBuffer, so calling Buffer.slice on it won't work
b = b.slice(0, Math.min(1024*16, size-written));
fsWriteSync(fd, b);
written += b.length;
}
Expand Down

0 comments on commit 403737c

Please sign in to comment.