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

Model testing with integration tests #7203

Open
Stebalien opened this issue Apr 23, 2020 · 0 comments
Open

Model testing with integration tests #7203

Stebalien opened this issue Apr 23, 2020 · 0 comments
Labels
kind/test Testing work

Comments

@Stebalien
Copy link
Member

Many of our tests simply check to make sure that we reach the correct result. However, we don't often check to see if go-ipfs reached the correct result the correct way.

We should add some model testing by turning on debug logging for specific subsystems, executing a simple integration test, and checking to see if we get the expected result.

For example, we should verify that every gateway request uses a single bitswap session. We can verify this by making a bunch of independent gateway requests, logging when new sessions are created, and checking to see if we're creating too many sessions.

@Stebalien Stebalien added the kind/test Testing work label Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/test Testing work
Projects
None yet
Development

No branches or pull requests

1 participant