-
Notifications
You must be signed in to change notification settings - Fork 1.6k
test: handle commit event properly by pool maintaining #16125
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome,
but I think we could simplify this if we only mock the state and state subscription?
this is more like a real e2e test, we could therefor also move this to reth-ethereum-node, but I'd prefer to use state/notification mocking here
crates/transaction-pool/Cargo.toml
Outdated
reth-ethereum = { workspace = true, features = [ | ||
"test-utils", | ||
"network", | ||
"pool", | ||
"provider", | ||
] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this we can't really do because this is a cyclic dep graph, that only works because this is a dev-dep, so we should flatten these.
or move this test into reth-ethereum-node entreily
node.inner.provider.clone(), | ||
txpool.clone(), | ||
node.inner.provider.clone().canonical_state_stream(), | ||
executor.clone(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, for this test, we likely just need a way to mock the subscription?
sow e can ditch the entire node setup?
@mattsse updated! |
crates/ethereum/node/Cargo.toml
Outdated
@@ -56,6 +56,7 @@ reth-payload-primitives.workspace = true | |||
reth-e2e-test-utils.workspace = true | |||
reth-rpc-eth-api.workspace = true | |||
reth-tasks.workspace = true | |||
reth-ethereum = { workspace = true, features = ["pool"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can't import this here either, because this is now cyclic,
we need to import the crates we need, which is the pool crate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, we def want to test this e2e
fyi @Rimeeeeee once this is merged we can also reuse the OkValidator for this |
No description provided.