Skip to content

Conversation

@tamilmani1989
Copy link
Member

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:

@tamilmani1989 tamilmani1989 requested a review from jaer-tsun March 7, 2019 22:36
@codecov
Copy link

codecov bot commented Mar 7, 2019

Codecov Report

Merging #310 into master will increase coverage by 0.19%.
The diff coverage is 91.3%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
telemetry/cnstelemetry.go 0% <ø> (ø) ⬆️
telemetry/telemetrybuffer.go 53.81% <91.3%> (+2.31%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ddb72c...ca62f53. Read the comment docs.

telemetryLogger.Printf("Server closing client connection2")
conn.Close()
tb.connections = remove(tb.connections, index)
return
Copy link
Contributor

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?

Copy link
Member Author

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

ninzavivek
ninzavivek previously approved these changes Mar 8, 2019
jaer-tsun
jaer-tsun previously approved these changes Mar 9, 2019
Copy link
Contributor

@jaer-tsun jaer-tsun left a comment

Choose a reason for hiding this comment

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

lgtm

ninzavivek
ninzavivek previously approved these changes Mar 9, 2019
@tamilmani1989 tamilmani1989 merged commit 159cd85 into Azure:master Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants