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(2472): offline unittests #2596

Open
wants to merge 2 commits into
base: staging
Choose a base branch
from

Conversation

zyzniewski-reef
Copy link
Contributor

@zyzniewski-reef zyzniewski-reef commented Jan 22, 2025

DO NOT MERGE UNTIL async pre-merge is merged to staging

Bug

#2472

Description of the Change

  • mocking networking.get_external_ip
  • mocking SubstrateInterface to use mocked websockets ClientConnect
  • passing mocked websockets ClientConnect as a dependency to Subtensor
  • minor unittests restructure

Alternate Designs

Not extracting common fixtures and just copy & past fixes.

Possible Drawbacks

We're not testing networking.get_external_ip connectivity with all hardcoded known addresses.

Verification Process

Running unittests online & offline.

Release Notes

  • unittests working offline

@zyzniewski-reef zyzniewski-reef force-pushed the fix/2472-offline_unittests branch from fbdd99f to 1f27022 Compare January 22, 2025 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants