Skip to content

Commit f3e8bb2

Browse files
committed
increase timeout in tests
1 parent 89a666b commit f3e8bb2

File tree

4 files changed

+9
-0
lines changed

4 files changed

+9
-0
lines changed

t/discovery/nacos.t

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@ discovery:
6565
6666
_EOC_
6767

68+
add_block_preprocessor(sub {
69+
my ($block) = @_;
70+
$block->set_value("timeout", "10");
71+
72+
});
73+
6874
run_tests();
6975

7076
__DATA__

t/discovery/nacos2.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ add_block_preprocessor(sub {
2424
if (!$block->request) {
2525
$block->set_value("request", "GET /t");
2626
}
27+
$block->set_value("timeout", "10");
2728
});
2829

2930
run_tests();

t/discovery/nacos3.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ add_block_preprocessor(sub {
2626
if (!$block->request) {
2727
$block->set_value("request", "GET /t");
2828
}
29+
$block->set_value("timeout", "10");
2930
});
3031

3132
our $yaml_config = <<_EOC_;

t/discovery/stream/nacos.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ add_block_preprocessor(sub {
5050
if (!$block->stream_request) {
5151
$block->set_value("stream_request", "GET /hello HTTP/1.1\r\nHost: 127.0.0.1:1985\r\nConnection: close\r\n\r\n");
5252
}
53+
$block->set_value("timeout", "10");
5354

5455
});
5556

0 commit comments

Comments
 (0)