Skip to content

Commit

Permalink
Fix assertions in crowd-funding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bart-linera committed Feb 21, 2025
1 parent b9d0dcf commit ff65cc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/crowd-funding/tests/campaign_lifecycle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async fn collect_pledges() {
})
.await;

assert_eq!(pledge_certificate.outgoing_message_count(), 3);
assert_eq!(pledge_certificate.outgoing_message_count(), 2);
pledges_and_transfers.push(pledge_certificate);
}

Expand Down Expand Up @@ -178,7 +178,7 @@ async fn cancel_successful_campaign() {
})
.await;

assert_eq!(pledge_certificate.outgoing_message_count(), 3);
assert_eq!(pledge_certificate.outgoing_message_count(), 2);
pledges_and_transfers.push(pledge_certificate);
}

Expand Down
1 change: 1 addition & 0 deletions linera-service/src/cli_wrappers/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,7 @@ impl NodeService {
&self,
chain_id: &ChainId,
) -> Result<HashMap<String, String>> {
// uh oh
let query = format!("query {{ applications(chainId: \"{chain_id}\") {{ id link }}}}");
let data = self.query_node(query).await?;
data["applications"]
Expand Down

0 comments on commit ff65cc8

Please sign in to comment.