Skip to content

Commit

Permalink
Fix: create CD test hunk size (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmercm authored Jul 25, 2024
1 parent 6869f95 commit 935550f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/chdman/chdmanCd.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ it('should fail on nonexistent file', async () => {
});

test.each([
[path.join('test', 'fixtures', 'cue', 'single.cue'), 2352],
[path.join('test', 'fixtures', 'cue', 'multiple.cue'), Math.floor((4704 + 7056 + 3000) / 2352) * 2352],
])('should create, info, and extract: %s', async (cue, expectedBinSize) => {
[path.join('test', 'fixtures', 'cue', 'single.cue'), undefined, 2352],
[path.join('test', 'fixtures', 'cue', 'multiple.cue'), 14_688, Math.floor((4704 + 7056 + 3000) / 2352) * 2352],
])('should create, info, and extract: %s', async (cue, hunkSize, expectedBinSize) => {
const temporaryChd = `${await TestUtil.mktemp(path.join(os.tmpdir(), path.basename(cue)))}.chd`;
const temporaryCue = `${temporaryChd}.cue`;
const temporaryBin = `${temporaryChd}.bin`;
Expand All @@ -43,7 +43,7 @@ test.each([
inputFilename: cue,
outputFilename: temporaryChd,
// chdman v0.263 stopped producing valid CHDs for the fixtures with default settings
hunkSize: 2448 * 6,
hunkSize,
});
await expect(TestUtil.exists(temporaryChd)).resolves.toEqual(true);

Expand Down

0 comments on commit 935550f

Please sign in to comment.