Skip to content

Commit

Permalink
Fix the ordering of messages in the test
Browse files Browse the repository at this point in the history
  • Loading branch information
deuszx committed Jan 15, 2025
1 parent 5fa8dd4 commit b332fd6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions linera-execution/tests/test_execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1333,22 +1333,23 @@ async fn test_multiple_messages_from_different_applications() -> anyhow::Result<

// The registration message for the first destination chain
let first_registration_message = RawOutgoingMessage {
destination: Destination::from(first_destination_chain),
destination: Destination::from(second_destination_chain),
authenticated: false,
grant: Amount::ZERO,
kind: MessageKind::Simple,
message: SystemMessage::RegisterApplications {
applications: vec![sending_target_description.clone(), caller_description],
applications: vec![sending_target_description.clone()],
},
};

// The registration message for the second destination chain
let second_registration_message = RawOutgoingMessage {
destination: Destination::from(second_destination_chain),
destination: Destination::from(first_destination_chain),
authenticated: false,
grant: Amount::ZERO,
kind: MessageKind::Simple,
message: SystemMessage::RegisterApplications {
applications: vec![sending_target_description],
applications: vec![sending_target_description, caller_description],
},
};

Expand Down

0 comments on commit b332fd6

Please sign in to comment.