From 280a90c3235bc1770a48c88166a872ee88a7b162 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Tue, 14 Nov 2017 10:44:07 +0100
Subject: try to slowdown tests with erratic result (FTBFS)

---
 php-zendframework-zend-cache.spec | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/php-zendframework-zend-cache.spec b/php-zendframework-zend-cache.spec
index 80f9ff2..ae2dfcc 100644
--- a/php-zendframework-zend-cache.spec
+++ b/php-zendframework-zend-cache.spec
@@ -21,7 +21,7 @@
 
 Name:           php-%{gh_owner}-%{gh_project}
 Version:        2.7.2
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Zend Framework %{library} component
 
 Group:          Development/Libraries
@@ -166,6 +166,11 @@ Zend\Loader\AutoloaderFactory::factory(array(
 require_once '%{php_home}/Zend/autoload.php';
 EOF
 
+# Try to slowdown tests with erratic results
+sed -e '/unlinkDelay/s/5000/50000/' \
+    -e '/usleep/s/1000/10000/' \
+    -i test/Storage/Adapter/FilesystemTest.php
+
 ret=0
 for cmd in php php56 php70 php71 php72; do
   if which $cmd; then
@@ -188,6 +193,9 @@ exit $ret
 
 
 %changelog
+* Tue Nov 14 2017 Remi Collet <remi@fedoraproject.org> - 2.7.2-5
+- try to slowdown tests with erratic result (FTBFS)
+
 * Tue Oct 31 2017 Remi Collet <remi@fedoraproject.org> - 2.7.2-4
 - fix FTBFS from Koschei, add upstream patch for PHP 7.2
 
-- 
cgit