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

test(engineio): mock http/ws connections and improve integration tests #444

Merged
merged 2 commits into from
Jan 19, 2025

Conversation

Totodore
Copy link
Owner

Motivation

Integration tests are currently done by spawning hyper server and issuing http request on it (which can be later upgraded to ws).
Hence, it's more e2e testing than integration testing by definition.

Solution

Mock http connections and mock ws connections so that we can send request to the EngineioService without actually spawning an http server.

@Totodore Totodore added A-engineioxide Area related to engineioxide C-Enhancement Related to an enhancement T-testing Topic: testing labels Jan 19, 2025
@Totodore Totodore enabled auto-merge (squash) January 19, 2025 20:29
@Totodore Totodore merged commit 88dc4df into main Jan 19, 2025
30 checks passed
Totodore added a commit that referenced this pull request Jan 19, 2025
Totodore added a commit that referenced this pull request Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-engineioxide Area related to engineioxide C-Enhancement Related to an enhancement T-testing Topic: testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant