Skip to content

Commit a1b0b7a

Browse files
committed
FIXME
1 parent ed78fe0 commit a1b0b7a

File tree

3 files changed

+65
-1
lines changed

3 files changed

+65
-1
lines changed

lib/App/Yath/Server/Tester.pm

+57
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,63 @@ package App::Yath::Server::Tester;
22
use strict;
33
use warnings;
44

5+
our $VERSION = '2.000000';
6+
7+
1;
8+
9+
10+
=pod
11+
12+
=encoding UTF-8
13+
14+
=head1 NAME
15+
16+
App::Yath::Server::Tester - FIXME
17+
18+
=head1 DESCRIPTION
19+
20+
=head1 SYNOPSIS
21+
22+
=head1 EXPORTS
23+
24+
=over 4
25+
26+
=back
27+
28+
=head1 SOURCE
29+
30+
The source code repository for Test2-Harness can be found at
31+
L<http://github.com/Test-More/Test2-Harness/>.
32+
33+
=head1 MAINTAINERS
34+
35+
=over 4
36+
37+
=item Chad Granum E<lt>[email protected]E<gt>
38+
39+
=back
40+
41+
=head1 AUTHORS
42+
43+
=over 4
44+
45+
=item Chad Granum E<lt>[email protected]E<gt>
46+
47+
=back
48+
49+
=head1 COPYRIGHT
50+
51+
Copyright Chad Granum E<lt>[email protected]E<gt>.
52+
53+
This program is free software; you can redistribute it and/or
54+
modify it under the same terms as Perl itself.
55+
56+
See L<http://dev.perl.org/licenses/>
57+
58+
=cut
59+
60+
61+
__END__
562
# FIXME: This module needs to be reworked
663
764
our $VERSION = '2.000000';

lib/Test2/Harness/Collector.pm

+7
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,13 @@ sub setup_child_input {
543543
}
544544
else {
545545
my $input = $ts->input // "";
546+
547+
# wait for temp dir up to 2 seconds
548+
for (1 .. 20) {
549+
last if -d $ENV{TMPDIR};
550+
sleep 0.1;
551+
}
552+
546553
my ($fh, $file) = tempfile("input-$$-XXXX", TMPDIR => 1, UNLINK => 1);
547554
print $fh $input;
548555
close($fh);

t/unit/App/Yath/Server/Tester.t

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use Test2::V0; # -target => 'App::Yath::Server::Tester'
1+
use Test2::V0 -target => 'App::Yath::Server::Tester';
22

33
skip_all "write me";
44

0 commit comments

Comments
 (0)