diff options
Diffstat (limited to 'internal/game/casino_rules_list_test.go')
| -rw-r--r-- | internal/game/casino_rules_list_test.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/internal/game/casino_rules_list_test.go b/internal/game/casino_rules_list_test.go index e83c277..f0c72d2 100644 --- a/internal/game/casino_rules_list_test.go +++ b/internal/game/casino_rules_list_test.go @@ -129,13 +129,17 @@ func TestListFollowsGameState(t *testing.T) { } } - // Establish a point: place/odds appear, bonus bets close. + // Establish a point: place/odds appear, bonus bets close. The roll is + // deliberately delayed, so advance the shared clock until it resolves. g.Casino.Action(1, "bank", "alice", "roll") + for i := 0; i < 5; i++ { + g.Casino.Tick() + } conn.data = nil g.executeList(sess, nil, "list") text = stripANSI(string(conn.data)) targets = listTargets(text) - if !targets["place 6"] || !targets["odds pass"] { + if !targets["place 6/8"] || !targets["odds pass / come"] { t.Fatalf("point list missing place/odds: %q", text) } if targets["fire"] { |
