-
Notifications
You must be signed in to change notification settings - Fork 260
Added UT in telemetry code to fix code coverage #310
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #310 +/- ##
==========================================
+ Coverage 46.32% 46.51% +0.19%
==========================================
Files 25 25
Lines 3424 3440 +16
==========================================
+ Hits 1586 1600 +14
- Misses 1598 1600 +2
Partials 240 240
Continue to review full report at Codecov.
|
| telemetryLogger.Printf("Server closing client connection2") | ||
| conn.Close() | ||
| tb.connections = remove(tb.connections, index) | ||
| return |
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.
why did we change this?
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.
that is the right way..we should not remove array elements in iteration loop..also in one of the instances its crashed
jaer-tsun
left a comment
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.
lgtm
What this PR does / why we need it:
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged): fixes #This PR fixes code coverage issue seen by #296 . The PR contains UT for server side closing connection first instead of client.
Special notes for your reviewer:
Release note: