From 2b0eee5324c2c37933442734bd052ddc1aefa7b9 Mon Sep 17 00:00:00 2001 From: gxz Date: Thu, 8 Aug 2024 15:24:47 +0800 Subject: [PATCH] chore: optimize --- packages/rtc/test/impl/IAgoraRtcEngineImplEx.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/rtc/test/impl/IAgoraRtcEngineImplEx.test.ts b/packages/rtc/test/impl/IAgoraRtcEngineImplEx.test.ts index bcb5bed..cec467a 100644 --- a/packages/rtc/test/impl/IAgoraRtcEngineImplEx.test.ts +++ b/packages/rtc/test/impl/IAgoraRtcEngineImplEx.test.ts @@ -335,7 +335,7 @@ describe('IAgoraRtcEngineImpl', () => { connection ); let remoteUsers = irisClient.agoraRTCClient!.remoteUsers; - expect(remoteUsers[0].videoTrack?.isPlaying).toBe(true); + expect(remoteUsers[0].videoTrack?.isPlaying).toBe(false); await callIris( apiEnginePtr, @@ -355,6 +355,7 @@ describe('IAgoraRtcEngineImpl', () => { } ); expect(remoteUsers[0].videoTrack).not.toBeUndefined(); + expect(remoteUsers[0].videoTrack?.isPlaying).toBe(true); }); test('muteRemoteVideoStreamEx_6d93082', async () => { await callIris(apiEnginePtr, 'RtcEngine_enableVideo', null); @@ -364,7 +365,7 @@ describe('IAgoraRtcEngineImpl', () => { connection ); let remoteUsers = irisClient.agoraRTCClient!.remoteUsers; - expect(remoteUsers[0].videoTrack?.isPlaying).toBe(true); + expect(remoteUsers[0].videoTrack?.isPlaying).toBe(false); await callIris( apiEnginePtr, @@ -386,6 +387,7 @@ describe('IAgoraRtcEngineImpl', () => { } ); expect(remoteUsers[0].videoTrack).not.toBeUndefined(); + expect(remoteUsers[0].videoTrack?.isPlaying).toBe(true); }); test('createDataStreamEx_9f641b6', async () => {