-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix concurrent map access and remove unwanted code #245
Conversation
Fix concurrent map access. Remove unwanted code to create SEs based on user created destination rules
@@ -48,7 +48,7 @@ func TestDeleteCacheControllerThatDoesntExist(t *testing.T) { | |||
|
|||
w := RemoteRegistry{ | |||
RemoteControllers: make(map[string]*RemoteController), | |||
StartTime: time.Now(), | |||
StartTime: time.Now(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick, formatting issues.
@@ -62,7 +62,7 @@ func TestDeleteCacheController(t *testing.T) { | |||
|
|||
w := RemoteRegistry{ | |||
RemoteControllers: make(map[string]*RemoteController), | |||
StartTime: time.Now(), | |||
StartTime: time.Now(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick, formatting issues.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be the right formatting now. Was messed up before.
Codecov Report
@@ Coverage Diff @@
## master #245 +/- ##
==========================================
+ Coverage 72.78% 74.13% +1.34%
==========================================
Files 27 27
Lines 2657 2579 -78
==========================================
- Hits 1934 1912 -22
+ Misses 601 546 -55
+ Partials 122 121 -1
Continue to review full report at Codecov.
|
…cosystem#245) (istio-ecosystem#145) * Fix concurrent map access and remove unwanted code (istio-ecosystem#245) * MESH-1988 Co-authored-by: aattuluri <[email protected]>
Fix concurrent map access on multiple controllers.
Remove unwanted code to create SEs based on user created destination rules.
Add
-race
to detect races in tests.