aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/craps_test.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-02 14:43:26 -0400
committerhistoria <[not public]>2026-10-02 14:43:26 -0400
commit4f40f116ba884111c9a66849e620ff9fbc67530a (patch)
treeaf407f199be482f9aac997d2cfaa0d86a806d8ff /internal/casino/craps_test.go
parent62017c86392b046d746fb4fafef6742840477c5f (diff)
downloadthehouseoficarus-4f40f116ba884111c9a66849e620ff9fbc67530a.tar.gz
feat: compact craps layout, ux cleanup
Diffstat (limited to 'internal/casino/craps_test.go')
-rw-r--r--internal/casino/craps_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/casino/craps_test.go b/internal/casino/craps_test.go
index 603aedb..3d92e5e 100644
--- a/internal/casino/craps_test.go
+++ b/internal/casino/craps_test.go
@@ -250,6 +250,10 @@ func TestCrapsTimersControlsAndRefunds(t *testing.T) {
t.Fatal("bets must remain open until the roll")
}
tb.action("a", "roll")
+ if tb.dice != [2]int{} {
+ t.Fatal("roll resolved before the shake")
+ }
+ tb.tickElapsed(3 * time.Second)
if tb.dice == [2]int{} {
t.Fatal("no roll")
}
@@ -262,6 +266,7 @@ func TestCrapsTimersControlsAndRefunds(t *testing.T) {
t.Fatal("solo players must never be forced to roll")
}
tb.action("a", "roll")
+ tb.tickElapsed(3 * time.Second)
if tb.dice == [2]int{} {
t.Fatal("solo manual roll stalled")
}