Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
paperdave committed Dec 12, 2024
1 parent 88f6f19 commit a677884
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/js/node/test/parallel/test-string-decoder-fuzz.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
'use strict';
import { expect } from 'bun:test';
require('../common');
const { StringDecoder } = require('string_decoder');
const util = require('util');
Expand Down Expand Up @@ -39,11 +38,11 @@ function runSingleFuzzTest() {
strings.push(sd.end());

assert.strictEqual(strings.join(''), Buffer.concat(bufs).toString(enc),
`Mismatch:\n${strings}\nExpected:\n` +
`Mismatch:\n${util.inspect(strings)}\n` +
util.inspect(bufs.map((buf) => buf.toString('hex'))) +
`\nfor encoding ${enc}`);
}

const start = Date.now();
while (Date.now() - start < 1000)
while (Date.now() - start < 10000)
runSingleFuzzTest();

0 comments on commit a677884

Please sign in to comment.