Parcourir la source

Fix HTTP::Daemon::VERSION to get a fixed header size for tests
(Sven Nierlein)


git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@2048 f882894a-f735-0410-b71e-b25c423dba1c

Ton Voon il y a 17 ans
Parent
commit
3b4d0bb292
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      plugins/tests/check_http.t

+ 3 - 0
plugins/tests/check_http.t

@@ -12,6 +12,9 @@ use HTTP::Daemon;
 use HTTP::Status;
 use HTTP::Status;
 use HTTP::Response;
 use HTTP::Response;
 
 
+# set a fixed version, so the header size doesn't vary
+$HTTP::Daemon::VERSION = "1.00";
+
 my $port = 50000 + int(rand(1000));
 my $port = 50000 + int(rand(1000));
 
 
 my $pid = fork();
 my $pid = fork();