diff options
Diffstat (limited to 'internal/casino/craps_test.go')
| -rw-r--r-- | internal/casino/craps_test.go | 5 |
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") } |
