Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

fix: Make fake event sender thread safe by adding a lock #357

Merged
merged 1 commit into from
Nov 24, 2021

Conversation

bacherfl
Copy link
Member

In some cases unit tests where the fake event sender is being used were failing because the event sender internally uses the append() function to gather the sent events. However this function is not thread safe, which is why a lock has been added

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Contributor

@RealAnna RealAnna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bacherfl bacherfl merged commit fe1fb0c into master Nov 24, 2021
@bacherfl bacherfl deleted the fix/fake-event-sender-concurrency branch November 24, 2021 09:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants