Skip to content

Test server crashes on client-side changes #162

@Albinutte

Description

@Albinutte

Describe the bug

Making code changes on the client side while running test server with another driver crashes it.

To Reproduce

  • Start test server with METEOR_DISABLE_OPTIMISTIC_CACHING=1 TEST_CLIENT=0 TEST_SERVER=0 meteor test --port 4000 --full-app --driver-package tmeasday:acceptance-test-driver.
  • Make any code changes on the client side.

The server is going to crash with this error:

=> Client modified -- refreshing
node:internal/process/promises:394
    triggerUncaughtException(err, true /* fromPromise */);
    ^
{
  stack: "TypeError: Cannot read properties of undefined (reading 'runClient')\n" +
    '    at clientTests (packages/meteortesting:mocha/server.js:153:22)\n' +
    '    at packages/meteortesting:mocha/server.js:244:3\n' +
    '    at packages/inter-process-messaging.js:99:48\n' +
    '    at Set.forEach (<anonymous>)\n' +
    '    at packages/inter-process-messaging.js:99:21\n' +
    '    at processTicksAndRejections (node:internal/process/task_queues:105:5)',
  message: "Cannot read properties of undefined (reading 'runClient')"
}

Expected behavior

Server restarts without a problem.

Desktop (please complete the following information):

Additional context

The error appeared after migrating from Meteor 2.16 and meteortesting:[email protected].

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