Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xt/t9501-gitweb-standalone-http-status.sh11
1 files changed, 2 insertions, 9 deletions
diff --git a/t/t9501-gitweb-standalone-http-status.sh b/t/t9501-gitweb-standalone-http-status.sh
index 992d72961d..d196cc5ca9 100755
--- a/t/t9501-gitweb-standalone-http-status.sh
+++ b/t/t9501-gitweb-standalone-http-status.sh
@@ -115,19 +115,12 @@ test_debug 'cat gitweb.output'
# ----------------------------------------------------------------------
# load checking
-if test -e /proc/loadavg
-then
- test_set_prereq PROC_LOADAVG
-else
- say 'skipping load tests (no /proc/loadavg found)'
-fi
-
# always hit the load limit
cat >>gitweb_config.perl <<\EOF
-our $maxload = 0;
+our $maxload = -1;
EOF
-test_expect_success PROC_LOADAVG 'load checking: load too high (default action)' '
+test_expect_success 'load checking: load too high (default action)' '
gitweb_run "p=.git" &&
grep "Status: 503 Service Unavailable" gitweb.headers &&
grep "503 - The load average on the server is too high" gitweb.body