[omd-commits] OMD Git: omd: fix perl warning in tests

git version control git at mathias-kettner.de
Fri Mar 4 14:47:04 CET 2016


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

Author:   Sven Nierlein <Sven.Nierlein at consol.de>
Date:     Fri Mar  4 14:46:34 2016 +0100
Commiter: Sven Nierlein <Sven.Nierlein at consol.de>
Date:     Fri Mar  4 14:46:34 2016 +0100

fix perl warning in tests

Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/"members":\[{ <-- HERE "/ at t/TestUtils.pm line 321

---

 t/20-package_nagvis.t |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/20-package_nagvis.t b/t/20-package_nagvis.t
index 245d57e..bfe539a 100644
--- a/t/20-package_nagvis.t
+++ b/t/20-package_nagvis.t
@@ -382,7 +382,7 @@ TestUtils::test_url(
 # 2. Match the member list
 TestUtils::test_url(
     api_url_list({ url  => '/nagvis/server/core/ajax_handler.php?mod=Map&act=getObjectStates&show=demo-germany&ty=state&i[]=d99295',
-                   like => [ '/{"state":/', '/"members":\[{"/' ]})
+                   like => [ '/{"state":/', '/"members":\[\{"/' ]})
 );
 
 ###############################################################################



More information about the omd-commits mailing list