karma-runner / karma-runner/karma

Karma tests only run half the time in Docker environment

Open
#3,359 15 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

Are there any known race conditions that happen when Karma is used with Docker? The test runs correctly _sometimes_. Example: I run karma start and the tests don't run correctly (shown below), but when I run it a second time, it might run correctly (also shown below).

### Expected behaviour
The tests run consistently every time the karma server is started with `./node_modules/karma/bin/karma start ./karma.conf.ts`. I am in a Docker environment.

### Actual behaviour
Sometimes, the tests run to completion correctly. Other times, the tests do not run at all.

When the tests run correctly:
![image](https://user-images.githubusercontent.com/21316782/64060045-45445480-cb7c-11e9-8cdd-f823d15fcd1a.png)

When the tests don't run correctly:
![image](https://user-images.githubusercontent.com/21316782/64139900-68a71380-cdb7-11e9-881c-ce0366244f5e.png)

### Environment Details

- Karma version (output of `karma --version`):
4.2.0
- Relevant part of your `karma.config.js` file
![image](https://user-images.githubusercontent.com/21316782/64139982-b0c63600-cdb7-11e9-9dff-1424795d3a20.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.