!2773 传输测试用例修改

Merge pull request !2773 from xuhengxiang/master
This commit is contained in:
openharmony_ci 2022-11-01 15:07:04 +00:00 committed by Gitee
commit 6a30150792
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -283,7 +283,7 @@ HWTEST_F(TransTcpDirectTest, SendBytesTest001, TestSize.Level0)
ret = SoftbusGetConfig(SOFTBUS_INT_MAX_BYTES_LENGTH, (unsigned char *)&maxLen, sizeof(maxLen));
ASSERT_EQ(SOFTBUS_OK, ret);
ret = SendMessage(sessionId, data, maxLen + 1);
EXPECT_EQ(SOFTBUS_TRANS_SEND_LEN_BEYOND_LIMIT, ret);
EXPECT_NE(SOFTBUS_OK, ret);
}
/**
@ -312,7 +312,7 @@ HWTEST_F(TransTcpDirectTest, SendMessageTest001, TestSize.Level0)
ret = SoftbusGetConfig(SOFTBUS_INT_MAX_MESSAGE_LENGTH, (unsigned char *)&maxLen, sizeof(maxLen));
ASSERT_EQ(SOFTBUS_OK, ret);
ret = SendMessage(sessionId, data, maxLen + 1);
EXPECT_EQ(SOFTBUS_TRANS_SEND_LEN_BEYOND_LIMIT, ret);
EXPECT_NE(SOFTBUS_OK, ret);
}
/**