From c7a99b000ae9164760057d9be28a2cc9f368f89a Mon Sep 17 00:00:00 2001 From: Benjamin Pracht Date: Wed, 27 Nov 2024 10:41:57 -0800 Subject: [PATCH] nil check --- test/ffprobe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ffprobe.go b/test/ffprobe.go index 59677e50..efc61ae8 100644 --- a/test/ffprobe.go +++ b/test/ffprobe.go @@ -126,7 +126,7 @@ func verify(t *testing.T, in string, p *config.PipelineConfig, res *livekit.Egre require.Equal(t, livekit.EgressSourceType_EGRESS_SOURCE_TYPE_WEB, res.SourceType) } else if p.RequestType == types.RequestTypeWeb { require.Equal(t, livekit.EgressSourceType_EGRESS_SOURCE_TYPE_WEB, res.SourceType) - } else { + } else if res != nil { require.Equal(t, livekit.EgressSourceType_EGRESS_SOURCE_TYPE_SDK, res.SourceType) }