t/05-scheduler-dependencies.t | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/t/05-scheduler-dependencies.t b/t/05-scheduler-dependencies.t index 81771028..eec65b89 100644 --- a/t/05-scheduler-dependencies.t +++ b/t/05-scheduler-dependencies.t @@ -714,11 +714,12 @@ is_deeply($jobD2_h->{parents}->{Chained}, [$jobA2->id], 'jobD2 has jobA2 as chai is($jobD2_h->{settings}{TEST}, $jobD->TEST, 'jobD2 test and jobD test are equal'); my $jobA2_h = job_get_deps($jobA2->id); -is_deeply( - $jobA2_h->{children}->{Chained}, - [$jobB2_h->{id}, $jobC2_h->{id}, $jobD2_h->{id}], - 'jobA2 has jobB2, jobC2 and jobD2 as children' -); +my @a_ = @{$jobA2_h->{children}->{Chained}}; +my @b_ = @{[$jobB2_h->{id}, $jobC2_h->{id}, $jobD2_h->{id}]}; +@a_ = sort { $a <=> $b } @a_; +@b_ = sort { $a <=> $b } @b_; +note explain (\@a_, \@b_); +is_deeply(\@a_, \@b_, 'jobA2 has jobB2, jobC2 and jobD2 as children') or diag explain (\@a_, \@b_); # situation parent is done, children running -> parent is cloned -> parent is running -> parent is cloned. Check all children has new parent: # A <- B