Skip to content

refactor(starknet_client): share code in tests mocks #5074

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

Merged
merged 1 commit into from
Mar 24, 2025

Conversation

ayeletstarkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link

graphite-app bot commented Mar 20, 2025

Merge activity

  • Mar 20, 4:05 AM EDT: Graphite rebased this pull request after merging its parent, because this pull request is set to merge when ready.

Copy link
Contributor

@yair-starkware yair-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @alonh5)


crates/starknet_client/src/reader/starknet_feeder_gateway_client_test.rs line 75 at r1 (raw file):

}

// TODO(Ayelet): Remove support for the old feeder gateway after upgrading to version 0.14.0.

Move the TODO to be before the use_deprecated_feeder_gateway arg

Code quote:

// TODO(Ayelet): Remove support for the old feeder gateway after upgrading to version 0.14.0.

crates/starknet_client/src/reader/starknet_feeder_gateway_client_test.rs line 76 at r1 (raw file):

// TODO(Ayelet): Remove support for the old feeder gateway after upgrading to version 0.14.0.
// Consider making this function generic for all successful mock responses in this file.

This is a separate TODO, right?

Code quote:

// Consider making this function generic for all successful mock responses in this file.

crates/starknet_client/src/reader/starknet_feeder_gateway_client_test.rs line 88 at r1 (raw file):

}

// TODO(Ayelet): Remove support for the old feeder gateway after upgrading to version 0.14.0.

Same

Code quote:

// TODO(Ayelet): Remove support for the old feeder gateway after upgrading to version 0.14.0.

@ayeletstarkware ayeletstarkware force-pushed the ayelet/starknet-client/share-code-mock branch from 7c300b2 to 256e4e9 Compare March 24, 2025 14:19
Copy link
Contributor Author

@ayeletstarkware ayeletstarkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 1 files reviewed, 3 unresolved discussions (waiting on @alonh5 and @yair-starkware)


crates/starknet_client/src/reader/starknet_feeder_gateway_client_test.rs line 75 at r1 (raw file):

Previously, yair-starkware (Yair) wrote…

Move the TODO to be before the use_deprecated_feeder_gateway arg

Already there. removed from here.


crates/starknet_client/src/reader/starknet_feeder_gateway_client_test.rs line 76 at r1 (raw file):

Previously, yair-starkware (Yair) wrote…

This is a separate TODO, right?

yes


crates/starknet_client/src/reader/starknet_feeder_gateway_client_test.rs line 88 at r1 (raw file):

Previously, yair-starkware (Yair) wrote…

Same

Done.

Copy link
Contributor

@yair-starkware yair-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @alonh5)

Copy link
Contributor

@yair-starkware yair-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @alonh5)

@ayeletstarkware ayeletstarkware added this pull request to the merge queue Mar 24, 2025
Merged via the queue into main with commit 3c8468d Mar 24, 2025
14 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 26, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants