Skip to content

Commit ef9cc90

Browse files
clea up lint
1 parent f560088 commit ef9cc90

File tree

5 files changed

+11
-188
lines changed

5 files changed

+11
-188
lines changed

logs.txt

Lines changed: 0 additions & 114 deletions
This file was deleted.

test/integration/node-specific/client_close.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const process = require('node:process');
21
import { expect } from 'chai';
2+
33
import { type TestConfiguration } from '../../tools/runner/config';
44
import { runScriptAndGetProcessInfo } from './resource_tracking_script_builder';
55

@@ -42,9 +42,10 @@ describe.skip('client.close() Integration', () => {
4242
log({ ActiveResources: process.getActiveResourcesInfo() });
4343
chai.expect(process.getActiveResourcesInfo()).to.include('FSReqPromise');
4444
await client.close();
45-
setTimeout(() =>
46-
chai.expect(process.getActiveResourcesInfo()).to.not.include('FSReqPromise'),
47-
1000);
45+
setTimeout(
46+
() => chai.expect(process.getActiveResourcesInfo()).to.not.include('FSReqPromise'),
47+
1000
48+
);
4849
}
4950
);
5051
});

test/integration/node-specific/resource_tracking_script_builder.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,9 @@ export async function runScriptAndGetProcessInfo(
185185
const formattedLogRead = '{' + fs.readFileSync(logFile, 'utf-8').slice(0, -3) + '}';
186186
const messages = JSON.parse(formattedLogRead);
187187

188-
//await unlink(scriptName);
189-
//await unlink(logFile);
188+
// delete temporary files
189+
await unlink(scriptName);
190+
await unlink(logFile);
190191

191192
// assertions about exit status
192193
expect(exitCode, 'process should have exited with zero').to.equal(0);

test/tools/fixtures/process_resource_script.in.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
/* eslint-disable no-undef */
4+
/* eslint-disable no-unused-vars */
45
const driverPath = DRIVER_SOURCE_PATH;
56
const func = FUNCTION_STRING;
67
const name = NAME_STRING;
@@ -13,6 +14,7 @@ const util = require('node:util');
1314
const timers = require('node:timers');
1415
const fs = require('node:fs');
1516
const chai = require('chai');
17+
const { setTimeout } = require('timers');
1618

1719
let originalReport;
1820
const logFile = 'logs.txt';
@@ -53,7 +55,7 @@ main()
5355
setTimeout(() => {
5456
// this means something was in the event loop such that it hung for more than 10 seconds
5557
// so we kill the process
56-
log({ exitCode : 99 });
58+
log({ exitCode: 99 });
5759
process.exit(99);
5860
// using `unref` will ensure this setTimeout call is not a resource / does not keep the event loop running
5961
}, 10000).unref();

tls-file-read.cjs

Lines changed: 0 additions & 67 deletions
This file was deleted.

0 commit comments

Comments
 (0)