Skip to content

Commit a17ca7c

Browse files
committed
Fixed default directory for level.
1 parent e6549e9 commit a17ca7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bin/typescript-demo-lib.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { v4 as uuidv4 } from 'uuid';
77
import testWorkers from '../lib/workers/test-workers';
88
import testLevel from '../lib/test-level';
99
import testUtpNative from '../lib/test-utp-native';
10+
import * as os from 'os';
1011

1112
async function main(argv = process.argv): Promise<number> {
1213
// Print out command-line arguments
@@ -28,7 +29,7 @@ async function main(argv = process.argv): Promise<number> {
2829
process.stdout.write(nums.num1 + ' + ' + nums.num2 + ' = ' + sum + '\n');
2930

3031
// Testing native modules
31-
const dir = argv[2] ?? '/tmp';
32+
const dir = argv[2] ?? os.tmpdir();
3233
await testLevel(dir);
3334
await testWorkers();
3435
await testUtpNative();

0 commit comments

Comments
 (0)