Skip to content

test: fix mocksubtensor query previous blocks#2139

Merged
thealligatorking merged 3 commits intoopentensor:stagingfrom
timabilov:fix-mocksubtensor-query-step
Jul 17, 2024
Merged

test: fix mocksubtensor query previous blocks#2139
thealligatorking merged 3 commits intoopentensor:stagingfrom
timabilov:fix-mocksubtensor-query-step

Conversation

@timabilov
Copy link
Contributor

Bug

There is typo when MockSubtensor.query_subtensor function checks previous blocks
self.state.get(block, None) -> state.get(block, None)

Description of the Change

Discovered internally

Changed to proper variable name
Added tests

Alternate Designs

N/A

Possible Drawbacks

N/A

Verification Process

Verification Process
This functionality had no tests. All tests are passing

Release Notes

  • Fixed an issue where querying mock subtensor's older blocks led to an error

@timabilov
Copy link
Contributor Author

@RomanCh-OT hey, now requested merge to staging

@basfroman basfroman self-requested a review July 16, 2024 19:22
@basfroman basfroman assigned basfroman and timabilov and unassigned basfroman Jul 16, 2024
@thealligatorking thealligatorking merged commit b7007af into opentensor:staging Jul 17, 2024
@ibraheem-abe ibraheem-abe mentioned this pull request Aug 23, 2024
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.

3 participants