| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d4d7df8 commit b04dd7b
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - var fs = require('fs'), | ||
| 3 | - path = require('path'), | ||
| 4 | - tls = require('tls'); | ||
| 2 | + const fs = require('fs'); | ||
| 3 | + const path = require('path'); | ||
| 4 | + const tls = require('tls'); | ||
| 5 | 5 | ||
| 6 | 6 | const common = require('../common.js'); | |
| 7 | 7 | const bench = common.createBenchmark(main, { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,29 +40,28 @@ if (cluster.isWorker) { | |||
| 40 | 40 | ||
| 41 | 41 | } else if (cluster.isMaster) { | |
| 42 | 42 | ||
| 43 | - const KILL_SIGNAL = 'SIGKILL', | ||
| 44 | - expected_results = { | ||
| 45 | - cluster_emitDisconnect: [1, "the cluster did not emit 'disconnect'"], | ||
| 46 | - cluster_emitExit: [1, "the cluster did not emit 'exit'"], | ||
| 47 | - cluster_exitCode: [null, 'the cluster exited w/ incorrect exitCode'], | ||
| 48 | - cluster_signalCode: [KILL_SIGNAL, | ||
| 49 | - 'the cluster exited w/ incorrect signalCode'], | ||
| 50 | - worker_emitDisconnect: [1, "the worker did not emit 'disconnect'"], | ||
| 51 | - worker_emitExit: [1, "the worker did not emit 'exit'"], | ||
| 52 | - worker_state: ['disconnected', 'the worker state is incorrect'], | ||
| 53 | - worker_exitedAfter: [false, | ||
| 54 | - 'the .exitedAfterDisconnect flag is incorrect'], | ||
| 55 | - worker_died: [true, 'the worker is still running'], | ||
| 56 | - worker_exitCode: [null, 'the worker exited w/ incorrect exitCode'], | ||
| 57 | - worker_signalCode: [KILL_SIGNAL, | ||
| 58 | - 'the worker exited w/ incorrect signalCode'] | ||
| 59 | - }, | ||
| 60 | - results = { | ||
| 61 | - cluster_emitDisconnect: 0, | ||
| 62 | - cluster_emitExit: 0, | ||
| 63 | - worker_emitDisconnect: 0, | ||
| 64 | - worker_emitExit: 0 | ||
| 65 | - }; | ||
| 43 | + const KILL_SIGNAL = 'SIGKILL'; | ||
| 44 | + const expected_results = { | ||
| 45 | + cluster_emitDisconnect: [1, "the cluster did not emit 'disconnect'"], | ||
| 46 | + cluster_emitExit: [1, "the cluster did not emit 'exit'"], | ||
| 47 | + cluster_exitCode: [null, 'the cluster exited w/ incorrect exitCode'], | ||
| 48 | + cluster_signalCode: [KILL_SIGNAL, | ||
| 49 | + 'the cluster exited w/ incorrect signalCode'], | ||
| 50 | + worker_emitDisconnect: [1, "the worker did not emit 'disconnect'"], | ||
| 51 | + worker_emitExit: [1, "the worker did not emit 'exit'"], | ||
| 52 | + worker_state: ['disconnected', 'the worker state is incorrect'], | ||
| 53 | + worker_exitedAfter: [false, 'the .exitedAfterDisconnect flag is incorrect'], | ||
| 54 | + worker_died: [true, 'the worker is still running'], | ||
| 55 | + worker_exitCode: [null, 'the worker exited w/ incorrect exitCode'], | ||
| 56 | + worker_signalCode: [KILL_SIGNAL, | ||
| 57 | + 'the worker exited w/ incorrect signalCode'] | ||
| 58 | + }; | ||
| 59 | + const results = { | ||
| 60 | + cluster_emitDisconnect: 0, | ||
| 61 | + cluster_emitExit: 0, | ||
| 62 | + worker_emitDisconnect: 0, | ||
| 63 | + worker_emitExit: 0 | ||
| 64 | + }; | ||
| 66 | 65 | ||
| 67 | 66 | ||
| 68 | 67 | // start worker | |
| Back | FazBrowse Home | New Git URL |
0 commit comments