Skip to content

MaxListenersExceededWarning #771

@kaaax0815

Description

@kaaax0815

Describe the bug
I get an error when running my tests

To Reproduce
Steps to reproduce the behavior:

  1. Clone https://github.com/kaaaxcreators/Discord-MusicBot
  2. Switch to Branch 'test'
  3. Install Packages
  4. Run script test
  5. see error

Expected behavior
every test case should succeed

Desktop (please complete the following information):

  • OS: Windows 10
  • Terminal: Powershell
  • Corde version: 4.1.0

Additional context
Log: ```

● BeforeStartError: timeout


    at Object.<anonymous> (dist\test\bot.test.js:5:9)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)

(node:1584) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 12 unhandledRejection listeners added to [process]. Use emitter.setMaxListeners()
to increase limit
(Use node --trace-warnings ... to show where the warning was created)

Test Files: 1 failed. 1 total
Tests: 18 failed. 18 total
Time: 22.75s

The Bot sends messages but still fails

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions