Skip to content
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

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

mystenmark
Copy link
Contributor

No description provided.

@mystenmark mystenmark requested review from longbowlu and velvia June 23, 2022 16:36
let (_, _, _, _) = transfer_coin(&mut context).await?;
let (_transfered_object, _sender, _receiver, digest) = transfer_coin(&mut context).await?;

sleep(Duration::from_millis(1000)).await;
Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

@velvia velvia left a comment

Choose a reason for hiding this comment

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

Wait a minute

  1. I thought this test was already there?
  2. 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?

Copy link
Contributor

@longbowlu longbowlu left a 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!

@longbowlu
Copy link
Contributor

@velvia It was accidentally deleted in my PR, probably due to rebase

@mystenmark mystenmark merged commit 61116a2 into main Jun 23, 2022
@mystenmark mystenmark deleted the mlogan-fullnode-cold-sync-test branch June 23, 2022 16:56
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