Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions acceleration/internal/api/scheduled_unpaid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
Loading