-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update logger adapter test to avoid race
Add synchronization around adding logs to a plugin and reading those logs. Without the follow configuration, a race occurs between go routines to add the logs into the plugin and read the logs out of the plugin. This adds a function to synchronize the action to avoid the race. Removes use of file for buffering, instead buffering whole messages so log count can be checked discretely. Signed-off-by: Derek McGowan <[email protected]> Signed-off-by: Sebastiaan van Stijn <[email protected]>
- Loading branch information
Showing
1 changed file
with
79 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters