Container step shows 'Build was cancelled' and is a missing the green checkmark although all tests run and pass

I have integrated CircleCI into my app such that every branch that is pushed to Github gets tests run against it and can only be merged with master if all tests pass. It is working as expected but I observed some peculiar behaviour on viewing the steps on https://app.circleci.com/.

Given below are the relevant images and my configuration file demonstrating the issue.

Thanks for the help!

Container step shows ‘Build was cancelled’ and is a missing the green checkmark although all tests run and pass

config.yml

# JavaScript Node CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
#
version: 2
jobs:
  build:
    docker:
      # specify the version you desire here
      - image: circleci/node:13.0.1
      - image: mongo:4.2.1

      # Specify service dependencies here if necessary
      # CircleCI maintains a library of pre-built images
      # documented at https://circleci.com/docs/2.0/circleci-images/
      # - image: circleci/mongo:3.4.4

    working_directory: ~/repo

    steps:
      - checkout

      # Download and cache dependencies
      - restore_cache:
          keys:
            - v1-dependencies-{{ checksum "package.json" }}
            # fallback to using the latest cache if no exact match is found
            - v1-dependencies-

      - run: 
          name: Install Dependencies
          command: npm install

      - save_cache:
          paths:
            - node_modules
          key: v1-dependencies-{{ checksum "package.json" }}

      # run tests!
      - run:
          name: Run Tests
          command: jest --ci --runInBand --detectOpenHandles --forceExit
          environment:
            MONGODB_URL: mongodb://127.0.0.1:27017/app-name

Hi @philosopher,

That is weird. Does your tests actually require MongoDB to run? What does expanding the test job show?

Regards,
Stig

Hi Stig,

My tests pass as expected. I have multiple tests that require firing up a test database and adding and removing records from it.

Please see screensht showing that all tests passed:

Hi again! That is curious. I think your best bet is to file a support request so they can take a look, trace logs etc.