aboutsummaryrefslogtreecommitdiff
path: root/internal/casino/blackjack_rules_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/casino/blackjack_rules_test.go')
-rw-r--r--internal/casino/blackjack_rules_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/casino/blackjack_rules_test.go b/internal/casino/blackjack_rules_test.go
index 62f4d0a..b0c9459 100644
--- a/internal/casino/blackjack_rules_test.go
+++ b/internal/casino/blackjack_rules_test.go
@@ -27,7 +27,7 @@ func TestBlackjackRuleCardDefaultsAndOverrides(t *testing.T) {
events := table.join("alice")
found := false
for _, e := range events {
- if e.Message == text {
+ if view, ok := e.Snapshot.(*BlackjackRulesView); ok && view.Config.Blackjack == table.Config.Blackjack {
found = true
if e.Public {
t.Error("rules broadcast to bystanders")
@@ -35,7 +35,7 @@ func TestBlackjackRuleCardDefaultsAndOverrides(t *testing.T) {
}
}
if !found {
- t.Fatal("joining did not display effective rules")
+ t.Fatal("joining did not ship the rules view")
}
}
}