Skip to content

Commit 0cce7fd

Browse files
authored
Fix test error (#374)
1 parent 00b2310 commit 0cce7fd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/integration.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ func (s *ioServer) UpdateSIPCallState(context.Context, *rpc.UpdateSIPCallStateRe
9393
return nil, nil
9494
}
9595

96+
func (s *ioServer) RecordCallContext(context.Context, *rpc.RecordCallContextRequest) (*emptypb.Empty, error) {
97+
return &emptypb.Empty{}, nil
98+
}
99+
96100
func GetDefaultConfig(t *testing.T) *TestConfig {
97101
tc := &TestConfig{
98102
Config: &config.Config{

test/whip.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ const (
4141
)
4242

4343
func RunWHIPTest(t *testing.T, conf *TestConfig, bus psrpc.MessageBus, commandPsrpcClient rpc.IngressHandlerClient, psrpcClient rpc.IOInfoClient, newCmd func(ctx context.Context, p *params.Params) (*exec.Cmd, error)) {
44-
whipsrv := whip.NewWHIPServer(commandPsrpcClient)
44+
whipsrv, err := whip.NewWHIPServer(bus)
45+
require.NoError(t, err)
4546
relay := service.NewRelay(nil, whipsrv)
4647

4748
svc, err := service.NewService(conf.Config, psrpcClient, bus, nil, whipsrv, newCmd, "")

0 commit comments

Comments
 (0)