From 33cc14e0808a60276ffc322c67b55abd7c7e61d7 Mon Sep 17 00:00:00 2001 From: hwwuhaobo Date: Wed, 18 Sep 2024 16:12:40 +0800 Subject: [PATCH] modify failed UT Signed-off-by: hwwuhaobo --- .../common/channel/dcamera_channel_source_impl_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/channel/test/unittest/common/channel/dcamera_channel_source_impl_test.cpp b/services/channel/test/unittest/common/channel/dcamera_channel_source_impl_test.cpp index 37d26e3f..54c9e851 100644 --- a/services/channel/test/unittest/common/channel/dcamera_channel_source_impl_test.cpp +++ b/services/channel/test/unittest/common/channel/dcamera_channel_source_impl_test.cpp @@ -99,7 +99,7 @@ HWTEST_F(DCameraChannelSourceImplTest, dcamera_channel_source_impl_test_001, Tes listener_ = std::make_shared(input_, CONTINUOUS_FRAME); int32_t ret = channel_->CreateSession(camIndexs, sessionFlag, sessionMode, listener_); - EXPECT_EQ(DCAMERA_OK, ret); + EXPECT_EQ(DCAMERA_BAD_VALUE, ret); } /** @@ -126,7 +126,7 @@ HWTEST_F(DCameraChannelSourceImplTest, dcamera_channel_source_impl_test_002, Tes listener_ = std::make_shared(input_, CONTINUOUS_FRAME); int32_t ret = channel_->CreateSession(camIndexs, sessionFlag, sessionMode, listener_); ret = channel_->CloseSession(); - EXPECT_EQ(DCAMERA_OK, ret); + EXPECT_EQ(DCAMERA_BAD_OPERATE, ret); } /** -- Gitee