Closed zrzka closed 5 years ago
It fixes #329. I modified the test file a bit (attached at the end of this message). This PR:
DeviceDescription
CFRelease
Drivelist::IsCard
index.ts I was using for tests:
index.ts
import { inspect } from 'util'; import { list } from '..'; async function main() { var last_count = -1; while (true) { let drives; try { drives = await list(); } catch (error) { console.error(error); process.exitCode = 1; return; } if (last_count != drives.length) { last_count = drives.length; console.log(last_count); } } } main();
Yep, it just contains Change-type for the changelog.
@resin-ci retest
It fixes #329. I modified the test file a bit (attached at the end of this message). This PR:
DeviceDescription
creation to a separate functionCFRelease
calls (memory leaks)Drivelist::IsCard
more robustindex.ts
I was using for tests: