- Increase WEBSOCKETS_TESTS_TIMEOUT_FACTOR to 10 to make
test_keepalive_ping_with_no_ping_timeout pass again. - Remove skip-test_keepalive_ping_with_no_ping_timeout.patch, of course. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-websockets?expand=0&rev=29
This commit is contained in:
parent
99b8f93569
commit
2bb628a6c4
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 11 09:17:13 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Increase WEBSOCKETS_TESTS_TIMEOUT_FACTOR to 10 to make
|
||||
test_keepalive_ping_with_no_ping_timeout pass again.
|
||||
- Remove skip-test_keepalive_ping_with_no_ping_timeout.patch, of course.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 10 07:18:14 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
|
@ -26,9 +26,6 @@ License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/aaugustin/websockets
|
||||
Source: https://github.com/aaugustin/websockets/archive/%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM skip-test_keepalive_ping_with_no_ping_timeout.patch gh#aaugustin/websockets#1026 mcepl@suse.com
|
||||
# Skip test test_keepalive_ping_with_no_ping_timeout
|
||||
Patch0: skip-test_keepalive_ping_with_no_ping_timeout.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@ -58,7 +55,7 @@ export CFLAGS="%{optflags}"
|
||||
|
||||
%check
|
||||
# Test execution speed depends on BS load and architecture, relax
|
||||
export WEBSOCKETS_TESTS_TIMEOUT_FACTOR=5
|
||||
export WEBSOCKETS_TESTS_TIMEOUT_FACTOR=10
|
||||
# https://github.com/aaugustin/websockets/issues/855 is an intermittent failure
|
||||
# for test_keepalive_ping_does_not_crash_when_connection_lost on s390x
|
||||
%pyunittest_arch -v
|
||||
|
@ -1,21 +0,0 @@
|
||||
---
|
||||
tests/legacy/test_protocol.py | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
--- a/tests/legacy/test_protocol.py
|
||||
+++ b/tests/legacy/test_protocol.py
|
||||
@@ -1,5 +1,6 @@
|
||||
import asyncio
|
||||
import contextlib
|
||||
+import platform
|
||||
import sys
|
||||
import unittest
|
||||
import unittest.mock
|
||||
@@ -1189,6 +1190,7 @@ class CommonTests:
|
||||
self.loop.run_until_complete(asyncio.sleep(4 * MS))
|
||||
self.assertNoFrameSent()
|
||||
|
||||
+ @unittest.skipIf(platform.processor() == 'x86_64', 'gh#aaugustin/websockets#1026')
|
||||
def test_keepalive_ping_with_no_ping_timeout(self):
|
||||
self.restart_protocol_with_keepalive_ping(ping_timeout=None)
|
||||
|
Loading…
Reference in New Issue
Block a user