Skip to content

Commit ab0a18a

Browse files
committed
Fix data race in t/pod-valid.t
Seem to produce floppy failures. No idea is this fixes them or not, but fairly sure there's a data race with multiple Proc's trying to create new keys in the same hash.
1 parent f68ef83 commit ab0a18a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/pod-valid.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ sub test-it($job) {
2525
}
2626

2727
my @jobs;
28+
%data{@files} = 0 xx @files;
2829
for @files -> $file {
2930
my $p = Proc::Async.new($*EXECUTABLE-NAME, '--doc', $file);
3031
$p.stdout.tap(-> $buf {});

0 commit comments

Comments
 (0)