summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorUrban Müller2023-07-25 15:59:49 +0200
committerUrban Müller2023-07-25 15:59:49 +0200
commit3fd20a86f3af32ebba1e2ec14ea18a0056c15919 (patch)
treea2cf480378932cca2b1b673c15e269cf29b2141b /test
parentd72f3898e3d78f5e018a155e3c47c43c366ccec4 (diff)
downloaditools-3fd20a86f3af32ebba1e2ec14ea18a0056c15919.tar.gz
itools-3fd20a86f3af32ebba1e2ec14ea18a0056c15919.tar.bz2
itools-3fd20a86f3af32ebba1e2ec14ea18a0056c15919.zip
ensure that chance=0 never creates an error
Diffstat (limited to 'test')
-rw-r--r--test/it_url.testserver.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/it_url.testserver.php b/test/it_url.testserver.php
index 242ccf6..978e4af 100644
--- a/test/it_url.testserver.php
+++ b/test/it_url.testserver.php
@@ -75,7 +75,7 @@ switch ($_SERVER['PHP_SELF'])
break;
case "/maybe_error":
- $iserror = rand(0, 99) <= $_REQUEST['chance'];
+ $iserror = rand(0, 99) < $_REQUEST['chance'];
http_response_code($iserror ? 500 : 200);
echo $iserror ? "failure" : "success";
break;