-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
Restore test_full_node_cold_sync and make it less fragile #2690
Conversation
let (_, _, _, _) = transfer_coin(&mut context).await?; | ||
let (_transfered_object, _sender, _receiver, digest) = transfer_coin(&mut context).await?; | ||
|
||
sleep(Duration::from_millis(1000)).await; |
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 should sleep after wait_for_tx
, right?
Let's add a comment on why we sleep here
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 sleep is to make sure that the authorities are quiescent before we start up the node - if they aren't, its not really a cold sync.
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.
Wait a minute
- I thought this test was already there?
- The test looks identical to what I have in my branch, except that you swapped get_transactions_from_addr for
handle_transaction_info_request
..... so its because you switched it to not be based on indexing?
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.
thanks for adding it back!
@velvia It was accidentally deleted in my PR, probably due to rebase |
No description provided.