Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions examples/t/.prove
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
---
generation: 11
last_run_time: 1789642220.28353
tests:
"./async.t":
elapsed: 2.26030302047729
gen: 11
last_fail_time: 1789642159.55943
last_pass_time: 1789642216.66124
last_result: 0
last_run_time: 1789642216.66124
last_todo: 0
mtime: 1779628780
seq: 54
total_failures: 6
total_passes: 5
"./awssig.t":
elapsed: 0.0434160232543945
gen: 11
last_pass_time: 1789642214.44578
last_result: 0
last_run_time: 1789642214.44578
last_todo: 0
mtime: 1789641794
seq: 51
total_passes: 11
"./curl.t":
elapsed: 0.251311063766479
gen: 11
last_fail_time: 1789642159.56034
last_pass_time: 1789642214.65495
last_result: 0
last_run_time: 1789642214.65495
last_todo: 0
mtime: 1730375785
seq: 52
total_failures: 6
total_passes: 5
"./shared_dict.t":
elapsed: 5.87828707695007
gen: 11
last_fail_time: 1789642159.56064
last_pass_time: 1789642220.28316
last_result: 0
last_run_time: 1789642220.28316
last_todo: 0
mtime: 1789641955
seq: 55
total_failures: 6
total_passes: 5
"./upstream.t":
elapsed: 0.262914180755615
gen: 11
last_fail_time: 1789642159.56518
last_pass_time: 1789642214.71092
last_result: 0
last_run_time: 1789642214.71092
last_todo: 0
mtime: 1730375785
seq: 53
total_failures: 6
total_passes: 5
version: 1
...
5 changes: 5 additions & 0 deletions examples/t/awssig.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ use Test::Nginx;
select STDERR; $| = 1;
select STDOUT; $| = 1;

# The example is not built on Darwin: chrono reaches the local timezone
# through CoreFoundation, which is not fork-safe. See examples/config.
plan(skip_all => 'awssig example is not built on this platform')
if $^O eq 'darwin';

my $t = Test::Nginx->new()->has(qw/http proxy/)->plan(1)
->write_file_expand('nginx.conf', <<"EOF");

Expand Down
7 changes: 6 additions & 1 deletion examples/t/shared_dict.t
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@ sub check {

my $pid = $1;

for (1 .. 25) {
for (1 .. 60) {
# Back-to-back requests keep landing on the worker that is
# already awake. Pause so the kernel has a reason to wake
# the other one.
select(undef, undef, undef, 0.2);

$r = http_get($uri);

return unless ($r =~ $like && $r =~ /X-Process: (\d+)/);
Expand Down