Skip to content

Flaky api integration tests: transitions #10875

Description

@dianabarsan

Describe the issue
Example run: https://github.com/medic/cht-core/actions/runs/24440636603/job/71406458766#step:16:3866

  4) Transitions public_form
       when false, reports from unknwon sources should not be accepted:

      AssertionError: expected [ …(2) ] to have a length of 1 but got 2
      + expected - actual

      -2
      +1
      
      at Context.<anonymous> (/home/runner/work/cht-core/cht-core/tests/integration/transitions/public-form-transitions.spec.js:315:31)
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

  5) transitions
       should run all sync transitions and all async transitions:

      AssertionError: expected 11 to equal 10
      + expected - actual

      -11
      +10
      
      at /home/runner/work/cht-core/cht-core/tests/integration/transitions/sentinel-api-transitions.spec.js:502:50
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

  6) transitions
       should not crash services when transitions are misconfigured:

      AssertionError: expected 1 to equal +0
      + expected - actual

      -1
      +0
      
      at /home/runner/work/cht-core/cht-core/tests/integration/transitions/sentinel-api-transitions.spec.js:702:50
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

Multiple tests have failed during this run, so I am suspecting something was up with the machine.

Metadata

Metadata

Assignees

Labels

FlakyIndicates a flaky or unreliable testHelp wantedThe CHT is looking for help!TestingAffects how the code is testedType: Technical issueImprove something that users won't notice

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
💻 In Progress

Relationships

None yet

Development

No branches or pull requests

Issue actions