File 0001-Increase-test-timeout-for-2-tests-in-TestImageProxy-.patch of Package python-openstacksdk

From 561c3a6831af2428a61dc21221322f68f053a1fb Mon Sep 17 00:00:00 2001
From: Thomas Bechtold <tbechtold@suse.com>
Date: Thu, 31 Oct 2019 11:17:52 +0100
Subject: [PATCH] Increase test timeout for 2 tests in TestImageProxy class

The tests TestImageProxy.test_wait_for_task_error_396 and
TestImageProxy.test_wait_for_task_error_396 from
openstack.tests.unit.image.v2.test_proxy are failing in some build
environments with:

openstack.exceptions.ResourceTimeout: Timeout waiting for Task:id to \
    transition to success

Increasing the timeout hopefully helps.

Change-Id: I74714bfae1d488049d25701efcaad823b315631b
---
 openstack/tests/unit/image/v2/test_proxy.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/openstack/tests/unit/image/v2/test_proxy.py b/openstack/tests/unit/image/v2/test_proxy.py
index 4bde9210..76038ad1 100644
--- a/openstack/tests/unit/image/v2/test_proxy.py
+++ b/openstack/tests/unit/image/v2/test_proxy.py
@@ -313,7 +313,7 @@ class TestImageProxy(test_proxy_base.TestProxyBase):
                                'fetch', mock_fetch):
 
             result = self.proxy.wait_for_task(
-                res, interval=0.01, wait=0.1)
+                res, interval=0.01, wait=0.5)
 
             self.assertEqual('success', result.status)
 
@@ -336,7 +336,7 @@ class TestImageProxy(test_proxy_base.TestProxyBase):
                                'fetch', mock_fetch):
 
             result = self.proxy.wait_for_task(
-                res, interval=0.01, wait=0.1)
+                res, interval=0.01, wait=0.5)
 
             self.assertEqual('success', result.status)
 
-- 
2.23.0

openSUSE Build Service is sponsored by