about summary refs log tree commit homepage
path: root/t/httpd-corner.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-12-12 04:22:00 +0000
committerEric Wong <e@80x24.org>2022-12-12 20:57:45 +0000
commitcf4cbaac260b5c24ed7173c39e0e18c0f0deb89f (patch)
tree96fed340a906138762d1768660cf8ac6f6f5f764 /t/httpd-corner.t
parent7f70bf3c6aab60f494842504e1267e719515430b (diff)
downloadpublic-inbox-cf4cbaac260b5c24ed7173c39e0e18c0f0deb89f.tar.gz
This makes it easier to identify places in tests which cause
unnecessary slowdowns doing busy waits.
Diffstat (limited to 't/httpd-corner.t')
-rw-r--r--t/httpd-corner.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/httpd-corner.t b/t/httpd-corner.t
index e16e8dc8..88820270 100644
--- a/t/httpd-corner.t
+++ b/t/httpd-corner.t
@@ -320,7 +320,7 @@ sub conn_for {
         $spawn_httpd->('-W0');
 }
 
-sub delay { select(undef, undef, undef, shift || rand(0.02)) }
+sub delay { tick(shift || rand(0.02)) }
 
 my $str = 'abcdefghijklmnopqrstuvwxyz';
 my $len = length $str;