From f62bdf39ceb4d82498dfeac000687d59f3110b12 Mon Sep 17 00:00:00 2001 From: wayne Date: Wed, 8 May 2024 14:08:42 +0800 Subject: [PATCH] * MDF [workflow] revert changes Signed-off-by: wayne --- .github/scripts/mqtt_test_v5.py | 3 +-- .github/scripts/rest_api_test.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/scripts/mqtt_test_v5.py b/.github/scripts/mqtt_test_v5.py index 8c143ec3b..ed02769f2 100755 --- a/.github/scripts/mqtt_test_v5.py +++ b/.github/scripts/mqtt_test_v5.py @@ -192,7 +192,7 @@ def test_topic_alias(): pid = Value('i', 0) process1 = Process(target=cnt_message, args=(sub_cmd, cnt, pid, "message")) process1.start() - time.sleep(2) + time.sleep(1) process2 = subprocess.Popen(pub_cmd, stdout=subprocess.PIPE, universal_newlines=True) @@ -204,7 +204,6 @@ def test_topic_alias(): time.sleep(1) times += 1 - time.sleep(2) process1.terminate() os.kill(pid.value, signal.SIGKILL) if cnt.value == 10: diff --git a/.github/scripts/rest_api_test.py b/.github/scripts/rest_api_test.py index 35b78a451..cf2ec0a3f 100644 --- a/.github/scripts/rest_api_test.py +++ b/.github/scripts/rest_api_test.py @@ -1,6 +1,5 @@ import requests import json -from time import sleep from collections import namedtuple base_url = "http://127.0.0.1:8081/api/v4" @@ -12,7 +11,6 @@ def test_get_api(): for p in paths: print("testing Get API: " + base_url + p) - sleep(0.5) response = requests.get(base_url + p, auth=('admin', 'public'), headers={'Connection':'close'}) if response.status_code != 200: