Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: assert fail if breakpoint not reached
Have the cluster worker print something or crash.
Then, test that it doesn't happen
because the worker is at a breakpoint.
  • Loading branch information
dave-k committed Apr 19, 2017
commit 61d06c5325e57c38febc95acbec9822998c831de
3 changes: 3 additions & 0 deletions test/parallel/test-cluster-inspect-brk.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ if (cluster.isMaster) {

test(['--inspect-brk']);
test([`--inspect-brk=${debuggerPort}`]);
} else {
// Cluster worker is at a breakpoint, should not reach here.
assert.fail(1, 2, 'Test failed: cluster worker is at a breakpoint.', '>');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As of recently, this can just be:

assert.fail('Test failed: cluster worker is at a breakpoint.');

}