summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2008-08-25 18:39:27 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2008-08-25 18:39:27 (GMT)
commit3b4d0bb2922bf26f43d1b0a9c20f46834dacc8d5 (patch)
tree9f6eec1d0948f6b60f86944a6f53e10701155889
parentbb5ce4be01810300d9dbffc72eb07364dd18e379 (diff)
downloadmonitoring-plugins-3b4d0bb2922bf26f43d1b0a9c20f46834dacc8d5.tar.gz
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
-rwxr-xr-xplugins/tests/check_http.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/tests/check_http.t b/plugins/tests/check_http.t
index a4a45cb..d37856f 100755
--- a/plugins/tests/check_http.t
+++ b/plugins/tests/check_http.t
@@ -12,6 +12,9 @@ use HTTP::Daemon;
12use HTTP::Status; 12use HTTP::Status;
13use HTTP::Response; 13use HTTP::Response;
14 14
15# set a fixed version, so the header size doesn't vary
16$HTTP::Daemon::VERSION = "1.00";
17
15my $port = 50000 + int(rand(1000)); 18my $port = 50000 + int(rand(1000));
16 19
17my $pid = fork(); 20my $pid = fork();