From 41b635267ab61fc42b9caab609876cf9fa8b11b8 Mon Sep 17 00:00:00 2001 From: Kanat Date: Tue, 24 Nov 2026 09:05:45 +0100 Subject: [PATCH] AI-3712: set the scheduled phone window on the router in TelnyxUnpaidSuite #2277 assigned the package-level scheduledPhoneWindow and scheduledCallLimit, which #2293 made constants and moved onto the router, so the api integration tests did not compile on main. Co-Authored-By: Claude Opus 5.5 --- acceleration/internal/api/scheduled_unpaid_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acceleration/internal/api/scheduled_unpaid_test.go b/acceleration/internal/api/scheduled_unpaid_test.go index 6c243f4607..4b60c862c7 100644 --- a/acceleration/internal/api/scheduled_unpaid_test.go +++ b/acceleration/internal/api/scheduled_unpaid_test.go @@ -1194,11 +1194,11 @@ func (s *TelnyxUnpaidSuite) ringingOn(model string) ringing { // callOn is ringing, on model, with the call taken on its run and not placed yet. func (s *TelnyxUnpaidSuite) callOn(model string) ringing { - window, longest := scheduledPhoneWindow, scheduledCallLimit + window, longest := s.router.phoneWindow, s.router.callLimit // The limit is longer than the test waits for the call to be let go: a call let go is one // the agent hung up, or the test ended. - scheduledPhoneWindow, scheduledCallLimit = deliveryWait, 2*deliveryWait - s.T().Cleanup(func() { scheduledPhoneWindow, scheduledCallLimit = window, longest }) + s.router.phoneWindow, s.router.callLimit = deliveryWait, 2*deliveryWait + s.T().Cleanup(func() { s.router.phoneWindow, s.router.callLimit = window, longest }) number, writer := "+1555"+digits(s.utils.uuid()), "+1347"+digits(s.utils.uuid()) s.seedSMSLine(number) s.config.Channels.Lines = store.AgentChannels{SMS: &store.ChannelLine{Number: number}}