Compare commits
2
Commits
bd12a7a70b
..
dev
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2e66567643 | ||
|
|
a8ff9863a6 |
@@ -145,6 +145,11 @@ class ScorekeeperSessionTest {
|
|||||||
await("$name to be asking") { host.state.requests.any { it.id == deviceId } }
|
await("$name to be asking") { host.state.requests.any { it.id == deviceId } }
|
||||||
host.session.allow(deviceId)
|
host.session.allow(deviceId)
|
||||||
await("$name to be let in") { guest.state.value.connected }
|
await("$name to be let in") { guest.state.value.connected }
|
||||||
|
// The sheet follows the connection over the socket, so `connected` can
|
||||||
|
// flip while it is still in flight. Callers read the guest's sheet at
|
||||||
|
// once (its players, its rounds), and on a slow runner that was an empty
|
||||||
|
// one: wait until the guest is looking at the host's.
|
||||||
|
await("$name to receive the sheet") { guest.state.value.sheet == host.state.sheet }
|
||||||
return guest
|
return guest
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user