t/BuildDiff: slightly refactor empty test to be more readable

This commit is contained in:
Cole Helbling 2022-01-10 10:39:06 -08:00
parent 220ccc68df
commit 157a02bff7

View file

@ -12,19 +12,23 @@ my $builds = $ctx->makeAndEvaluateJobset(
build => 1
);
subtest "response" => sub {
subtest "empty diff" => sub {
my $ret = buildDiff([], []);
is($ret, {
stillSucceed => [],
stillFail => [],
nowSucceed => [],
nowFail => [],
new => [],
removed => [],
unfinished => [],
aborted => [],
failed => [],
});
is(
$ret,
{
stillSucceed => [],
stillFail => [],
nowSucceed => [],
nowFail => [],
new => [],
removed => [],
unfinished => [],
aborted => [],
failed => [],
},
"empty list of jobs returns empty diff"
);
};
subtest "2 different jobs" => sub {