We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdc6471 commit 1c33f18Copy full SHA for 1c33f18
tests/utils/orchestration.php
@@ -15,8 +15,11 @@ function __construct($baseuri) {
15
16
function ping() {
17
try {
18
+ $t = $this->setTimeout(1);
19
$data = $this->get("");
20
+ $this->setTimeout($t);
21
} catch(\Exception $e) {
22
23
return false;
24
}
25
return true;
@@ -92,6 +95,11 @@ function stopId($id) {
92
95
93
96
94
97
98
+ function setTimeout($t) {
99
+ $retval = $this->conf["timeout"];
100
+ $this->conf["timeout"] = $t;
101
+ return $retval;
102
+ }
103
function getTimeout() {
104
return $this->conf["timeout"];
105
0 commit comments