diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7f66c86c..7899b19e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,14 +23,14 @@ jobs: os: [ubuntu-latest, windows-latest] command: - 'yarn test:nuts:bulk:export' - - 'yarn test:nuts:bulk:import' - - 'yarn test:nuts:bulk:update' - - 'yarn test:nuts:data:bulk-upsert-delete' - - 'yarn test:nuts:data:create' - - 'yarn test:nuts:data:query' - - 'yarn test:nuts:data:record' - - 'yarn test:nuts:data:search' - - 'yarn test:nuts:data:tree' + # - 'yarn test:nuts:bulk:import' + # - 'yarn test:nuts:bulk:update' + # - 'yarn test:nuts:data:bulk-upsert-delete' + # - 'yarn test:nuts:data:create' + # - 'yarn test:nuts:data:query' + # - 'yarn test:nuts:data:record' + # - 'yarn test:nuts:data:search' + # - 'yarn test:nuts:data:tree' fail-fast: false with: os: ${{ matrix.os }} diff --git a/src/bulkUtils.ts b/src/bulkUtils.ts index fb6bfdbd..716b1897 100644 --- a/src/bulkUtils.ts +++ b/src/bulkUtils.ts @@ -172,8 +172,8 @@ export async function exportRecords( ? [ Readable.from( res.body.slice( - res.body.indexOf(EOL) + 1, - platform() === 'win32' ? res.body.lastIndexOf(lineEndingsMap[outputInfo.lineEnding]) : undefined + res.body.indexOf(EOL) + (outputInfo.lineEnding === 'LF' ? 1 : 2), + platform() === 'win32' ? res.body.lastIndexOf('\n') : undefined ) ), fs.createWriteStream(outputInfo.filePath, {