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

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


# JavaScript Node CircleCI 2.0 configuration file
# Check for more details
version: 2
      # 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
      # - image: circleci/mongo:3.4.4

    working_directory: ~/repo

      - checkout

      # Download and cache dependencies
      - restore_cache:
            - 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:
            - node_modules
          key: v1-dependencies-{{ checksum "package.json" }}

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

Hi @philosopher,

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


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.