fix(random): match the /gachabeta clip length to the 6-second beta wish

This commit is contained in:
tiennm99 committed 2026-10-01 18:22:32 +07:00
1 parent f44b8564eb
commit f9526c4613
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ type gachaStyle struct {
var (
gachaStyleWish = gachaStyle{Path: "gacha", Duration: 7}
gachaStyleBeta = gachaStyle{Path: "gachabeta", Duration: 11}
gachaStyleBeta = gachaStyle{Path: "gachabeta", Duration: 6}
)
type gachaAPIRequest struct {
@@ -208,8 +208,8 @@ func TestGachaBeta_UsesBetaRendererAndAnyoneCanRunIt(t *testing.T) {
if animation == nil {
t.Fatalf("calls = %+v, want a sendAnimation", rb.Sent())
}
if got := animation.Form["duration"]; got != "11" {
t.Fatalf("duration = %q, want 11", got)
if got := animation.Form["duration"]; got != "6" {
t.Fatalf("duration = %q, want 6", got)
}
}