gitpod
gitpod copied to clipboard
Race condition happens when running the unit test
Bug description
Running the following components unit test with the -race
flag, it detects the race condition happens.
- common-go
- image-builder-mk3
- supervisor
- ws-manager
The component content-service
run unit test with -race
flag failed, but the reason is not related to the race condition detected.
Steps to reproduce
cd components/common-go
cd components/image-builder-mk3
cd components/supervisor
cd components/ws-manager
go test -covermode atomic ./... -count=1 -v -race
cd components/content-service
go test -covermode atomic ./... -count=1 -v -race
Workspace affected
N/A
Expected behavior
- No race condition detected.
- We should consider enabling
-race
flag when running the werft build.
Example repository
N/A
Anything else?
N/A
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
/not-stale
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.