Skip to content

Commit

Permalink
t/inline/02-oo.t: added sleep 1
Browse files Browse the repository at this point in the history
Added sleep 1 to the new test in order to prevent random fails.

Signed-off-by: Stefan Hermes <[email protected]>
  • Loading branch information
sh85 committed Jul 30, 2020
1 parent aedfc16 commit c140c25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/inline/02-oo.t
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,10 @@ is_deeply($cp{oo}, {foo => {key => 'left'}}, 'Custom Precedent - Object on Objec
{
my $destroyed = 0;
no warnings 'once';
local *Hash::Merge::DESTROY = sub { $destroyed = 1 };
local *Hash::Merge::DESTROY = sub { $destroyed = 1; };
use warnings;
Hash::Merge->new;
sleep 1;
ok $destroyed, "instance did not leak";
}

Expand Down

0 comments on commit c140c25

Please sign in to comment.