diff options
author | Eric Wong <e@80x24.org> | 2022-12-12 04:22:00 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-12-12 20:57:45 +0000 |
commit | cf4cbaac260b5c24ed7173c39e0e18c0f0deb89f (patch) | |
tree | 96fed340a906138762d1768660cf8ac6f6f5f764 /t/httpd-corner.t | |
parent | 7f70bf3c6aab60f494842504e1267e719515430b (diff) | |
download | public-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.t | 2 |
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; |