Skip to content

What is the correct configuration to run the tests? #910

@bobeal

Description

@bobeal

Hello,

As discussed with @jason-fox, I've started working on the feature to support replace mode when batch updating entities in the CB.

However, I must have missed something in my configuration since I've a lot (232 !) of failing tests.

What I've done so far:

  • Installed a supported version of Node (v10.22.0)
  • Launched npm test (as documented in doc/development.md)
  • (Even tried to launch a MongoDB Docker container but that did not help)

I can't attach a file to the issue but here are the typical errors I can see in the reports:

  81) NGSI-LD - Timestamp processing plugin
       "before each" hook for "should return an entity with all its timestamps expanded to have separators":
     Error: Timeout of 3000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/Users/bobeal/egm/dev/iotagent-node-lib/test/unit/ngsi-ld/plugins/timestamp-processing-plugin_test.js)

  188) NGSI-v2 - Provisioning API: Single service mode
       "after each" hook for "should raise a DUPLICATE_GROUP error":
     Error [ERR_SERVER_NOT_RUNNING]: Server is not running.
      at Server.close (net.js:1566:12)
      at Server.EventEmitter.emit (domain.js:466:23)
      at emitCloseNT (net.js:1619:8)
      at process._tickCallback (internal/process/next_tick.js:63:19)

  189) NGSI-v2 - Device provisioning API: Update provisioned devices
       "before each" hook for "should return a 200 OK and no errors":
     Uncaught Error: listen EADDRINUSE: address already in use 0.0.0.0:4041
      at Server.setupListenHandle [as _listen2] (net.js:1280:14)
      at listenInCluster (net.js:1328:12)
      at doListen (net.js:1461:7)
      at process._tickCallback (internal/process/next_tick.js:63:19)

What did I miss?

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