diff --git a/services/audiomanager/test/unittest/sourcedevice/src/dmic_dev_test.cpp b/services/audiomanager/test/unittest/sourcedevice/src/dmic_dev_test.cpp index 95afb8ea7f50a1550fc1d683b03f01faeda96d48..8ae4184751093b09b2ada6621d2335e58d027ba8 100644 --- a/services/audiomanager/test/unittest/sourcedevice/src/dmic_dev_test.cpp +++ b/services/audiomanager/test/unittest/sourcedevice/src/dmic_dev_test.cpp @@ -197,6 +197,7 @@ HWTEST_F(DMicDevTest, Start_001, TestSize.Level1) EXPECT_FALSE(mic_->IsOpened()); mic_->micTrans_ = std::make_shared(); + EXPECT_EQ(DH_SUCCESS, mic_->SetUp()); mic_->isTransReady_.store(true); EXPECT_EQ(DH_SUCCESS, mic_->Start()); EXPECT_TRUE(mic_->IsOpened());