update tests/core/transmission/trans_channel/udp_negotiation/trans_udp_nego_test.cpp.

Signed-off-by: 张再尧 <zhangzaiyao@huawei.com>
This commit is contained in:
张再尧 2022-11-02 10:33:57 +00:00 committed by Gitee
parent 4d4a4e6d42
commit a2f1d6cb63
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -12,7 +12,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <securec.h>
#include "auth_interface.h"
@ -197,7 +197,7 @@ HWTEST_F(TransUdpNegoTest, TransUdpNegoTest006, TestSize.Level1)
int64_t authId = AUTH_INVALID_ID;
int32_t ret = TransAddUdpChannel(newChannel);
EXPECT_TRUE(ret == SOFTBUS_OK);
EXPECT_TRUE(ret != SOFTBUS_OK);
TransOnExchangeUdpInfoReply(authId, INVALID_SEQ, msg);
TransOnExchangeUdpInfoReply(INVALID_AUTH_ID, newChannel->seq, msg);
@ -229,7 +229,7 @@ HWTEST_F(TransUdpNegoTest, TransUdpNegoTest007, TestSize.Level1)
int64_t authId = AUTH_INVALID_ID;
int32_t ret = TransAddUdpChannel(newChannel);
EXPECT_TRUE(ret == SOFTBUS_OK);
EXPECT_TRUE(ret != SOFTBUS_OK);
TransOnExchangeUdpInfoRequest(authId, newChannel->seq, NULL);
cJSON_Delete(msg);