Skip to content

Commit e759cdf

Browse files
committed
build: Apply eslint fixes to the GC stack
1 parent fd28088 commit e759cdf

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,3 @@ services:
4242
port: 12345
4343
interface: localhost
4444
# more per-service config settings
45-

lib/worker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ class Worker extends BaseService {
119119
// For 0.10: npm install heapdump
120120
process.on( 'SIGUSR2', this._dumpHeapHandler = () => {
121121
try {
122+
// eslint-disable-next-line n/no-missing-require
122123
const heapdump = require( 'heapdump' );
123124
const cwd = process.cwd();
124125
console.error( 'SIGUSR2 received! Writing snapshot.' );

test/features/tests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ describe( 'service-runner tests', () => {
104104
} );
105105

106106
it( 'Must produce prometheus default metrics when hit ', () => {
107-
const server = new TestServer( `${__dirname}/../utils/simple_config_no_workers_collect_default.yaml` );
107+
const server = new TestServer( `${ __dirname }/../utils/simple_config_no_workers_collect_default.yaml` );
108108
const response = { status: null, body: null };
109109
return server.start()
110110
.then( () => {

test/utils/simple_config_no_workers_collect_default.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ logging:
44
metrics:
55
- type: prometheus
66
port: 9000
7-
collect_default: true
7+
collect_default: true
88
- type: statsd
99
host: localhost
1010
port: 8125

0 commit comments

Comments
 (0)