!628 软总线用例修复

Merge pull request !628 from 张攀/master
This commit is contained in:
openharmony_ci 2024-04-24 07:24:47 +00:00 committed by Gitee
commit d56abe5e63
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
6 changed files with 12 additions and 11 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2024 Huawei Device Co., Ltd.
* Copyright (c) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2024 Huawei Device Co., Ltd.
* Copyright (c) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at

View File

@ -1,4 +1,4 @@
# Copyright (C) 2021-2024 Huawei Device Co., Ltd.
# Copyright (C) 2024 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2024 Huawei Device Co., Ltd.
* Copyright (c) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@ -119,13 +119,13 @@ SocketInfo socketStreamInfo = {
};
QosTV info_wifi[] = {
{.qos = QOS_TYPE_MIN_BW, .value = 10 * 1024 * 4024, },
{.qos = QOS_TYPE_MIN_BW, .value = 10 * 1024 * 1024, },
{.qos = QOS_TYPE_MIN_LATENCY, .value = 800, },
{.qos = QOS_TYPE_MAX_LATENCY, .value = 800, },
};
QosTV info_p2p[] = {
{.qos = QOS_TYPE_MIN_BW, .value = 160 * 1024 * 4024, },
{.qos = QOS_TYPE_MIN_BW, .value = 160 * 1024 * 1024, },
{.qos = QOS_TYPE_MIN_LATENCY, .value = 1600, },
{.qos = QOS_TYPE_MAX_LATENCY, .value = 1600, },
};

View File

@ -1,4 +1,4 @@
# Copyright (C) 2021-2024 Huawei Device Co., Ltd.
# Copyright (C) 2024 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2024 Huawei Device Co., Ltd.
* Copyright (c) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
@ -44,9 +44,10 @@ void SocketTestServer ::TearDown() {}
void SocketTestServer ::SetUpTestCase()
{
LOG("SetUpTestCase");
uint64_t tokenId = OHOS::Security::AccessToken::AccessTokenKit::GetNativeTokenId("dhardware");
SetSelfTokenID(tokenId);
sleep(1);
AddPermission();
sleep(ONE_SECOND);
system("pidof accesstoken_service | xargs kill -9");
sleep(ONE_SECOND);
TestSetUp();
SetupCallback();
int ret = RegNodeDeviceStateCb(DEF_PKG_NAME, g_nodeStateCallback);