diff --git a/framework/test/src/dm_adapter_test.cpp b/framework/test/src/dm_adapter_test.cpp index e9d07ed2..241a9235 100644 --- a/framework/test/src/dm_adapter_test.cpp +++ b/framework/test/src/dm_adapter_test.cpp @@ -168,20 +168,6 @@ HWTEST_F(DMAdapterTest, GetDevices, TestSize.Level0) ASSERT_TRUE(devices.empty()); } -/** -* @tc.name: GetLocalDeviceType -* @tc.desc: Get Local Device Type -* @tc.type: FUNC -* @tc.require: -* @tc.author: -*/ -HWTEST_F(DMAdapterTest, GetLocalDeviceType, TestSize.Level0) -{ - int32_t type = 14; - int32_t ret = DMAdapter::GetInstance().GetLocalDeviceType(); - ASSERT_EQ(ret, type); -} - /** * @tc.name: GetDeviceName001 * @tc.desc: Get Local Device Type @@ -193,6 +179,7 @@ HWTEST_F(DMAdapterTest, GetDeviceName001, TestSize.Level0) { std::string networkId = "invalidnetworkId"; std::string expectedDeviceName = "unknown"; + (void)DMAdapter::GetInstance().GetLocalDeviceType(); std::string actualDeviceName = DMAdapter::GetInstance().GetDeviceName(networkId); EXPECT_EQ(expectedDeviceName, actualDeviceName); }