Skip to content

Commit c682fd3

Browse files
committed
Increase mongo-orchestration HTTP timeout
1 parent a493b21 commit c682fd3

17 files changed

+34
-34
lines changed

scripts/convert-mo-tests.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function mo_delete($id) {
1414
$opts = array("http" =>
1515
array(
1616
"method" => "DELETE",
17-
"timeout" => 30,
17+
"timeout" => 60,
1818
"header" => "Accept: application/json\r\n" .
1919
"Content-type: application/x-www-form-urlencoded",
2020
"ignore_errors" => true,
@@ -32,7 +32,7 @@ function mo_post($url, $body) {
3232
$opts = array("http" =>
3333
array(
3434
"method" => "POST",
35-
"timeout" => 30,
35+
"timeout" => 60,
3636
"header" => "Accept: application/json\r\n" .
3737
"Content-type: application/x-www-form-urlencoded",
3838
"content" => json_encode($body),

tests/cluster/rs/connection/read/primary-available.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function mo_delete($id) {
1111
$opts = array("http" =>
1212
array(
1313
"method" => "DELETE",
14-
"timeout" => 30,
14+
"timeout" => 60,
1515
"header" => "Accept: application/json\r\n" .
1616
"Content-type: application/x-www-form-urlencoded",
1717
"ignore_errors" => true,
@@ -29,7 +29,7 @@ function mo_post($url, $body) {
2929
$opts = array("http" =>
3030
array(
3131
"method" => "POST",
32-
"timeout" => 30,
32+
"timeout" => 60,
3333
"header" => "Accept: application/json\r\n" .
3434
"Content-type: application/x-www-form-urlencoded",
3535
"content" => json_encode($body),

tests/cluster/rs/connection/read/primary-not-available.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function mo_delete($id) {
1111
$opts = array("http" =>
1212
array(
1313
"method" => "DELETE",
14-
"timeout" => 30,
14+
"timeout" => 60,
1515
"header" => "Accept: application/json\r\n" .
1616
"Content-type: application/x-www-form-urlencoded",
1717
"ignore_errors" => true,
@@ -29,7 +29,7 @@ function mo_post($url, $body) {
2929
$opts = array("http" =>
3030
array(
3131
"method" => "POST",
32-
"timeout" => 30,
32+
"timeout" => 60,
3333
"header" => "Accept: application/json\r\n" .
3434
"Content-type: application/x-www-form-urlencoded",
3535
"content" => json_encode($body),

tests/cluster/rs/connection/write/primary-available.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function mo_delete($id) {
1111
$opts = array("http" =>
1212
array(
1313
"method" => "DELETE",
14-
"timeout" => 30,
14+
"timeout" => 60,
1515
"header" => "Accept: application/json\r\n" .
1616
"Content-type: application/x-www-form-urlencoded",
1717
"ignore_errors" => true,
@@ -29,7 +29,7 @@ function mo_post($url, $body) {
2929
$opts = array("http" =>
3030
array(
3131
"method" => "POST",
32-
"timeout" => 30,
32+
"timeout" => 60,
3333
"header" => "Accept: application/json\r\n" .
3434
"Content-type: application/x-www-form-urlencoded",
3535
"content" => json_encode($body),

tests/cluster/rs/connection/write/primary-not-available.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function mo_delete($id) {
1111
$opts = array("http" =>
1212
array(
1313
"method" => "DELETE",
14-
"timeout" => 30,
14+
"timeout" => 60,
1515
"header" => "Accept: application/json\r\n" .
1616
"Content-type: application/x-www-form-urlencoded",
1717
"ignore_errors" => true,
@@ -29,7 +29,7 @@ function mo_post($url, $body) {
2929
$opts = array("http" =>
3030
array(
3131
"method" => "POST",
32-
"timeout" => 30,
32+
"timeout" => 60,
3333
"header" => "Accept: application/json\r\n" .
3434
"Content-type: application/x-www-form-urlencoded",
3535
"content" => json_encode($body),

tests/cluster/rs/connection/write/primary-restarted.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function mo_delete($id) {
1111
$opts = array("http" =>
1212
array(
1313
"method" => "DELETE",
14-
"timeout" => 30,
14+
"timeout" => 60,
1515
"header" => "Accept: application/json\r\n" .
1616
"Content-type: application/x-www-form-urlencoded",
1717
"ignore_errors" => true,
@@ -29,7 +29,7 @@ function mo_post($url, $body) {
2929
$opts = array("http" =>
3030
array(
3131
"method" => "POST",
32-
"timeout" => 30,
32+
"timeout" => 60,
3333
"header" => "Accept: application/json\r\n" .
3434
"Content-type: application/x-www-form-urlencoded",
3535
"content" => json_encode($body),

tests/cluster/rs/discovery/remove-all-add-members.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function mo_delete($id) {
1111
$opts = array("http" =>
1212
array(
1313
"method" => "DELETE",
14-
"timeout" => 30,
14+
"timeout" => 60,
1515
"header" => "Accept: application/json\r\n" .
1616
"Content-type: application/x-www-form-urlencoded",
1717
"ignore_errors" => true,
@@ -29,7 +29,7 @@ function mo_post($url, $body) {
2929
$opts = array("http" =>
3030
array(
3131
"method" => "POST",
32-
"timeout" => 30,
32+
"timeout" => 60,
3333
"header" => "Accept: application/json\r\n" .
3434
"Content-type: application/x-www-form-urlencoded",
3535
"content" => json_encode($body),

tests/cluster/rs/discovery/stepped-down-primary-triggers-refresh.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function mo_delete($id) {
1111
$opts = array("http" =>
1212
array(
1313
"method" => "DELETE",
14-
"timeout" => 30,
14+
"timeout" => 60,
1515
"header" => "Accept: application/json\r\n" .
1616
"Content-type: application/x-www-form-urlencoded",
1717
"ignore_errors" => true,
@@ -29,7 +29,7 @@ function mo_post($url, $body) {
2929
$opts = array("http" =>
3030
array(
3131
"method" => "POST",
32-
"timeout" => 30,
32+
"timeout" => 60,
3333
"header" => "Accept: application/json\r\n" .
3434
"Content-type: application/x-www-form-urlencoded",
3535
"content" => json_encode($body),

tests/cluster/sharded/connection/all-mongos-available.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function mo_delete($id) {
1111
$opts = array("http" =>
1212
array(
1313
"method" => "DELETE",
14-
"timeout" => 30,
14+
"timeout" => 60,
1515
"header" => "Accept: application/json\r\n" .
1616
"Content-type: application/x-www-form-urlencoded",
1717
"ignore_errors" => true,
@@ -29,7 +29,7 @@ function mo_post($url, $body) {
2929
$opts = array("http" =>
3030
array(
3131
"method" => "POST",
32-
"timeout" => 30,
32+
"timeout" => 60,
3333
"header" => "Accept: application/json\r\n" .
3434
"Content-type: application/x-www-form-urlencoded",
3535
"content" => json_encode($body),

tests/cluster/sharded/connection/no-mongos-available.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function mo_delete($id) {
1111
$opts = array("http" =>
1212
array(
1313
"method" => "DELETE",
14-
"timeout" => 30,
14+
"timeout" => 60,
1515
"header" => "Accept: application/json\r\n" .
1616
"Content-type: application/x-www-form-urlencoded",
1717
"ignore_errors" => true,
@@ -29,7 +29,7 @@ function mo_post($url, $body) {
2929
$opts = array("http" =>
3030
array(
3131
"method" => "POST",
32-
"timeout" => 30,
32+
"timeout" => 60,
3333
"header" => "Accept: application/json\r\n" .
3434
"Content-type: application/x-www-form-urlencoded",
3535
"content" => json_encode($body),

0 commit comments

Comments
 (0)