Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion crates/dsm-app-host/tests/real_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -834,14 +834,19 @@ async fn connect_over_the_real_relay() {
other => panic!("connect.sync answered {other:?}"),
}
}
let paid = established(
established(
&game,
&session,
pay,
pb::ConnectFact::Paid,
"the payment lands",
)
.await;
// The game's account holds the payment from the transfer it accepted; the
// wallet's answer reaches it separately over the relay, and either may
// arrive first. The outcome is the answer's, so it is read once that has.
let paid = answered(&game, &session, pay, "the wallet answers the payment").await;
assert_eq!(fact(&paid), pb::ConnectFact::Paid);
assert_eq!(outcome(&paid), pb::ConnectOutcome::CarriedOut);
assert_eq!(wallet.holds("WILD").await, 17, "the payment ran once");

Expand Down
Loading
Loading