Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: use --port=0 in most sequential debugger tests and move them to parallel #47274

Closed
wants to merge 2 commits into from

Commits on Mar 28, 2023

  1. test: use --port=0 in debugger tests that do not have to work on 9229

    To avoid failures when there is another running process occupying
    the port 9229 which may happen if there is a stale process, use the
    --port argument of node-inspect to use a random port in tests that
    don't have to work on port 9229.
    
    The following tests are not touched:
    
    - test-debugger-custom-port: tests a specific port
    - test-debugger-debug-brk: tests a specific port
    - test-debugger-invalid-args: tests other inspect combinations
    - test-debugger-pid: node-inspect does not support -p and --port
      together
    - test-debugger-launch: tests that default port is 9229
    joyeecheung committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    6033dd3 View commit details
    Browse the repository at this point in the history
  2. test: move debugger tests with --port=0 to parallel

    Before
    
    ```
    ❯ tools/test.py "sequential/test-debugger*"
    [00:25|% 100|+  32|-   0]: Done
    
    All tests passed.
    ❯ tools/test.py -J "parallel/test-debugger*"
    [00:05|% 100|+   6|-   0]: Done
    
    All tests passed.
    ```
    
    After
    
    ```
    ❯ tools/test.py "sequential/test-debugger*"
    [00:06|% 100|+   5|-   0]: Done
    
    All tests passed.
    ❯ tools/test.py -J "parallel/test-debugger*"
    [00:05|% 100|+  33|-   0]: Done
    
    All tests passed.
    ```
    joyeecheung committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    8d0782c View commit details
    Browse the repository at this point in the history