!2210 fix SessionManagerTest

Merge pull request !2210 from 王斌/master
This commit is contained in:
openharmony_ci 2024-08-30 02:35:51 +00:00 committed by Gitee
commit 0416d03ad6
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -144,7 +144,7 @@ HWTEST_F(SessionManagerTest, PackAndUnPack01, TestSize.Level2)
ASSERT_NE(sendHandler, nullptr);
uint32_t routeHeadSize = 0;
sendHandler->GetHeadDataSize(routeHeadSize);
ASSERT_GT(routeHeadSize, 0);
ASSERT_EQ(routeHeadSize, 0);
std::unique_ptr<uint8_t[]> data = std::make_unique<uint8_t[]>(routeHeadSize);
sendHandler->FillHeadData(data.get(), routeHeadSize, routeHeadSize);