Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
biglittlebigben committed Oct 28, 2024
1 parent d642d8a commit 045e35f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/sip/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
"github.com/livekit/mediatransportutil/pkg/rtcconfig"
"github.com/livekit/protocol/logger"
"github.com/livekit/protocol/rpc"
"github.com/livekit/psrpc"

"github.com/livekit/sip/pkg/media"

Expand Down Expand Up @@ -90,12 +91,16 @@ func testInvite(t *testing.T, h Handler, hidden bool, from, to string, test func
mon, err := stats.NewMonitor(&config.Config{MaxCpuUtilization: 0.9})
require.NoError(t, err)

bus := psrpc.NewLocalMessageBus()
psrpcClient, err := rpc.NewIOInfoClient(bus)
require.NoError(t, err)

s, err := NewService(&config.Config{
HideInboundPort: hidden,
SIPPort: sipPort,
SIPPortListen: sipPort,
RTPPort: rtcconfig.PortRange{Start: testPortRTPMin, End: testPortRTPMax},
}, mon, logger.GetLogger())
}, mon, logger.GetLogger(), psrpcClient)
require.NoError(t, err)
require.NotNil(t, s)
t.Cleanup(s.Stop)
Expand Down

0 comments on commit 045e35f

Please sign in to comment.