-
Notifications
You must be signed in to change notification settings - Fork 17
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
added a basic test to run the oracle #26
Conversation
5ba95b5
to
782a721
Compare
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.
Can we merge main into this branch, so that the changes from Reth bump aren't visible anymore?
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.
yep, this lgtm
tysm @loocapro
// expect signed data | ||
let signed_ticker_1 = broadcast_stream_1.next().await.unwrap().unwrap(); | ||
assert_eq!(signed_ticker_1.ticker.symbol, "BTCUSDT"); | ||
assert_eq!(signed_ticker_1.signer, signer_1); | ||
|
||
let signed_ticker_2 = broadcast_stream_2.next().await.unwrap().unwrap(); | ||
assert_eq!(signed_ticker_2.ticker.symbol, "BTCUSDT"); | ||
assert_eq!(signed_ticker_2.signer, signer_2); |
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.
so far this tests that both instances received an item from the stream, but it doesn't test if they actually exchange messages as peers after connecting. Can we do that as well?
Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com>
Co-authored-by: Alexey Shekhirin <a.shekhirin@gmail.com>
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.
#26 (comment) can be addressed in a separate PR, so LGTM as well! Thank you!
Added an e2e test that:
Depends on: #33