* [PATCH] t/v2mirror: increase timeout for plackup bind+listen
@ 2022-09-08 8:16 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2022-09-08 8:16 UTC (permalink / raw)
To: meta
This test tends to fail sometimes, likely due to plackup
startup being slow on a cold page cache and having an
overloaded rotational HDD.
---
t/v2mirror.t | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/t/v2mirror.t b/t/v2mirror.t
index 37d64e83..f9074e45 100644
--- a/t/v2mirror.t
+++ b/t/v2mirror.t
@@ -368,10 +368,11 @@ EOM
# wait for plackup socket()+bind()+listen()
my %opt = ( Proto => 'tcp', Type => Socket::SOCK_STREAM(),
PeerAddr => "$host:$port" );
- for (0..50) {
+ for (0..100) {
tick();
last if IO::Socket::INET->new(%opt);
}
+ IO::Socket::INET->new(%opt) or xbail "connect $host:$port: $!";
my $dst = "$tmpdir/scrape";
@cmd = (qw(-clone -q), "http://$host:$port/v2", $dst);
run_script(\@cmd, undef, { 2 => \($err = '') });
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-09-08 8:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-08 8:16 [PATCH] t/v2mirror: increase timeout for plackup bind+listen Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).