!17235 TDD测试用例修改

Merge pull request !17235 from qibaijin/test_amend
This commit is contained in:
openharmony_ci 2024-11-19 06:56:41 +00:00 committed by Gitee
commit d72448d1bb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -124,7 +124,9 @@ HWTEST_F(RSMessageProcessorTest, GetTransaction001, TestSize.Level1)
auto transactionData = std::make_shared<RSTransactionData>();
RSMessageProcessor::Instance().transactionMap_[pid] = transactionData;
EXPECT_NE(nullptr, RSMessageProcessor::Instance().GetTransaction(pid));
EXPECT_EQ(RSMessageProcessor::Instance().transactionMap_, RSMessageProcessor::Instance().GetAllTransactions());
EXPECT_FALSE(RSMessageProcessor::Instance().transactionMap_.empty());
EXPECT_FALSE(RSMessageProcessor::Instance().GetAllTransactions().empty());
EXPECT_TRUE(RSMessageProcessor::Instance().transactionMap_.empty());
}
/**