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

Initialize UptimeCalculator in TestPeer #1283

Merged
merged 3 commits into from
Apr 3, 2023

Conversation

joshua-kim
Copy link
Contributor

Why this should be merged

TestPeer breaks if it handles an inbound ping message because it has a nil UptimeCalculator

How this works

Initializes UptimeCalcualtor

How this was tested

CI

@joshua-kim joshua-kim changed the base branch from master to dev April 2, 2023 01:53
@StephenButtolph StephenButtolph added bug Something isn't working networking This involves networking labels Apr 2, 2023
@dhrubabasu
Copy link
Contributor

Can we add a test that fails on dev but passes with this change?

@StephenButtolph
Copy link
Contributor

Not sure how easy this would be to make a unit test for... But we could probably make a test for it in the e2e tests (as we already have a full node spun up there to connect to).

@joshua-kim
Copy link
Contributor Author

Not sure how easy this would be to make a unit test for... But we could probably make a test for it in the e2e tests (as we already have a full node spun up there to connect to).

Unit might be a bit annoying since it would increase build time but I think something in e2e sounds reasonable

@StephenButtolph StephenButtolph merged commit b77ed9f into ava-labs:dev Apr 3, 2023
13 checks passed
@joshua-kim joshua-kim deleted the test-peer-fix-ping branch April 3, 2023 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working networking This involves networking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants