Skip to content

bug: Warning about dump file not being synchronized is broken on macos #6028

@richardsimko

Description

@richardsimko

On a fresh install of pm2 and macos I did the following:

  1. Configure pm2 for startup
  2. Dumpfile is empty
  3. pm2 start --name test "yes"
  4. Script with name test starts
  5. pm2 status

At this point I was expecting this warning to be logged:

Common.warn(`Current process list is not synchronized with saved list. Type 'pm2 save' to synchronize.`)

  1. pm2 save
  2. pm2 delete test
  3. pm2 status

At this point I would be expecting this warning:

Common.warn(`Current process list is not synchronized with saved list. App ${chalk.bold(diff.join(' '))} differs. Type 'pm2 save' to synchronize.`)

In neither case the warning shows up.

This has regressed since 5.4.3 and has been broken since 6.0.5.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions