Skip to content

Commit e916297

Browse files
authored
Fix the test_wasm_end_to_end_social_user_pub_sub flakiness. (#3776)
## Motivation `test_wasm_end_to_end_social_user_pub_sub` sometimes fails because it's not deterministic when the first block, with the `OpenChain` message, is created on `chain2`. ## Proposal Synchronize after `open_and_assign`, so the `OpenChain` message is seen in the inbox right away. ## Test Plan The test passes for me now. ## Release Plan - These changes should be backported to the latest `testnet` branch. ## Links - [reviewer checklist](https://github.com/linera-io/linera-protocol/blob/main/CONTRIBUTING.md#reviewer-checklist)
1 parent c447827 commit e916297

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

linera-service/tests/linera_net_tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,7 @@ async fn test_wasm_end_to_end_social_user_pub_sub(config: impl LineraNetConfig)
892892

893893
let chain1 = client1.load_wallet()?.default_chain().unwrap();
894894
let chain2 = client1.open_and_assign(&client2, Amount::ONE).await?;
895+
client2.sync(chain2).await?;
895896
let (contract, service) = client1.build_example("social").await?;
896897
let module_id = client1
897898
.publish_module::<SocialAbi, (), ()>(contract, service, None)

0 commit comments

Comments
 (0)