Skip to content

Integration specs fail when rerun against the same kernel #165

Description

@woksin

What happens

Running yarn test:integration twice against the same local kernel fails, while a fresh kernel (as in CI) passes:

  • Source/**/when_replaying_an_older_generation.integration.spec.ts failed two reactor-observation tests on the first local run.
  • On the next run against the same kernel, when_erasing_a_subject.integration.spec.ts failed because a MongoDB database name left over from the migration spec (event store MigrationReplayMissing…) exceeds MongoDB's database-name length limit.

On a freshly started kernel all 7 files and 53 tests pass.

Expected

Integration specs use short, unique event store names and do not depend on state left by other specs, so they pass when run repeatedly against one local kernel.

Impact

Local integration runs are flaky unless the kernel container is recreated each time. CI is not affected.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions