Skip to content
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

Avoid timing issues in the integration tests #624

Merged
merged 2 commits into from
Apr 27, 2018
Merged

Conversation

yugui
Copy link
Member

@yugui yugui commented Apr 27, 2018

Wait for the gateway server to get ready.
#609 (comment)

@yugui yugui changed the title Avoid timing issues in the integration tests [WIP] Avoid timing issues in the integration tests Apr 27, 2018
@yugui
Copy link
Member Author

yugui commented Apr 27, 2018

Still failing when the grpc server is not ready. Need to check health of it too.

@yugui yugui changed the title [WIP] Avoid timing issues in the integration tests Avoid timing issues in the integration tests Apr 27, 2018
@codecov-io
Copy link

codecov-io commented Apr 27, 2018

Codecov Report

Merging #624 into master will increase coverage by 0.14%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #624      +/-   ##
==========================================
+ Coverage   58.88%   59.02%   +0.14%     
==========================================
  Files          30       30              
  Lines        2853     2858       +5     
==========================================
+ Hits         1680     1687       +7     
+ Misses       1010     1008       -2     
  Partials      163      163
Impacted Files Coverage Δ
protoc-gen-grpc-gateway/descriptor/types.go 53.09% <0%> (+4.02%) ⬆️

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 f252496...63d6aa1. Read the comment docs.

@yugui yugui force-pushed the fix/integration-timing branch from e1d8b8c to d832094 Compare April 27, 2018 15:06
return err
case <-t.C:
return err
case <-s.C:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use time.After to produce your timeout

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you. Done.

@yugui yugui force-pushed the fix/integration-timing branch from d832094 to 3d1e328 Compare April 27, 2018 15:56
@yugui yugui force-pushed the fix/integration-timing branch from 3d1e328 to 63d6aa1 Compare April 27, 2018 15:57
@achew22 achew22 merged commit 57c1177 into master Apr 27, 2018
@achew22 achew22 deleted the fix/integration-timing branch April 27, 2018 21:37
adasari pushed a commit to adasari/grpc-gateway that referenced this pull request Apr 9, 2020
* Avoid timing issues in the integration tests

Wait for the gateway server to get ready.
grpc-ecosystem#609 (comment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants