!5 [sync] PR-4: fix build error on riscv64

From: @openeuler-sync-bot 
Reviewed-by: @anchuanxu 
Signed-off-by: @anchuanxu
This commit is contained in:
openeuler-ci-bot 2025-01-23 08:35:23 +00:00 committed by Gitee
commit da743dec62
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/test/test_index.py b/test/test_index.py
index 1208f8a..e61741e 100644
--- a/test/test_index.py
+++ b/test/test_index.py
@@ -75,7 +75,7 @@ def test_get_index_from_http_with_query_parameters():
else:
proc = subprocess.Popen([sys.executable, '-m', 'http.server', '9876'],
cwd=FILES_DIR)
- time.sleep(0.5)
+ time.sleep(2)
try:
i = get_index(url)
assert len(i.distributions.keys()) == 1

View File

@ -9,6 +9,8 @@ License: BSD and MIT
URL: http://www.ros.org/wiki/rosdistro
Source0: %{version}.tar.gz
Patch0: 0-test-index-increase-http-server-startup-wait-time.patch
BuildArch: noarch
%description