diff options
author | Urban Müller | 2023-07-25 15:59:49 +0200 |
---|---|---|
committer | Urban Müller | 2023-07-25 15:59:49 +0200 |
commit | 3fd20a86f3af32ebba1e2ec14ea18a0056c15919 (patch) | |
tree | a2cf480378932cca2b1b673c15e269cf29b2141b | |
parent | d72f3898e3d78f5e018a155e3c47c43c366ccec4 (diff) | |
download | itools-3fd20a86f3af32ebba1e2ec14ea18a0056c15919.tar.gz itools-3fd20a86f3af32ebba1e2ec14ea18a0056c15919.tar.bz2 itools-3fd20a86f3af32ebba1e2ec14ea18a0056c15919.zip |
ensure that chance=0 never creates an error
-rw-r--r-- | test/it_url.testserver.php | 2 |
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; |