[omd-commits] OMD Git: omd: mod-gearman: make tests more reliable

git version control git at mathias-kettner.de
Tue Dec 6 20:08:25 CET 2011


Module:   omd
Branch:   master
Commit:   c60fbb9028f1dda8ccdbc7561708d50246cc1d07
URL:      http://omdistro.org/projects/omd/repository/revisions/c60fbb9028f1dda8ccdbc7561708d50246cc1d07

Author:   Sven Nierlein <sven at nierlein.de>
Date:     Tue Dec  6 20:07:50 2011 +0100
Commiter: Sven Nierlein <sven at nierlein.de>
Date:     Tue Dec  6 20:07:50 2011 +0100

mod-gearman: make tests more reliable

---

 t/31-mod-gearman.t |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/t/31-mod-gearman.t b/t/31-mod-gearman.t
index 313b9a4..2dcb38e 100644
--- a/t/31-mod-gearman.t
+++ b/t/31-mod-gearman.t
@@ -13,7 +13,7 @@ BEGIN {
     use lib "$FindBin::Bin/lib/lib/perl5";
 }
 
-plan( tests => 154 );
+plan( tests => 160 );
 
 ##################################################
 # get version strings
@@ -31,6 +31,9 @@ for my $core (qw/nagios icinga/) {
     my $host    = "omd-".$site;
     my $service = "Dummy+Service";
 
+    # make tests more reliable
+    TestUtils::test_command({ cmd => "/usr/bin/env sed -i -e 's/^idle-timeout=10/idle-timeout=300/g' /opt/omd/sites/$site/etc/mod-gearman/worker.cfg" });
+
     # create test host/service
     TestUtils::prepare_obj_config('t/data/omd/testconf1', '/omd/sites/'.$site.'/etc/nagios/conf.d', $site);
 



More information about the omd-commits mailing list