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

Add an example integration test for SSE #2465

Merged
merged 7 commits into from
Dec 30, 2023

Conversation

chenhunghan
Copy link
Contributor

@chenhunghan chenhunghan commented Dec 30, 2023

Motivation

The SSE example was missing a test, would be nice to have one.

Solution

This PR adds an example for integration test.

  • Adding the integration test requiring some minor refactoring of the example, this PR moves the create of app into a separate app().
  • Add dev-dependencies: reqwest/reqwest-eventsource/eventsource-stream that were used in tests.

Signed-off-by: Hung-Han (Henry) Chen <[email protected]>
Signed-off-by: Hung-Han (Henry) Chen <[email protected]>
Copy link
Member

@davidpdrsn davidpdrsn left a comment

Choose a reason for hiding this comment

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

A new nits but otherwise looks good!

chenhunghan and others added 3 commits December 30, 2023 17:54
Co-authored-by: David Pedersen <[email protected]>
Signed-off-by: Hung-Han (Henry) Chen <[email protected]>
Co-authored-by: David Pedersen <[email protected]>
Copy link
Member

@davidpdrsn davidpdrsn left a comment

Choose a reason for hiding this comment

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

Thanks!

@davidpdrsn davidpdrsn merged commit c340415 into tokio-rs:main Dec 30, 2023
18 checks passed
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.

2 participants