forked from lix-project/hydra
t/BuildDiff: slightly refactor empty test to be more readable
This commit is contained in:
parent
220ccc68df
commit
157a02bff7
|
@ -12,19 +12,23 @@ my $builds = $ctx->makeAndEvaluateJobset(
|
||||||
build => 1
|
build => 1
|
||||||
);
|
);
|
||||||
|
|
||||||
subtest "response" => sub {
|
subtest "empty diff" => sub {
|
||||||
my $ret = buildDiff([], []);
|
my $ret = buildDiff([], []);
|
||||||
is($ret, {
|
is(
|
||||||
stillSucceed => [],
|
$ret,
|
||||||
stillFail => [],
|
{
|
||||||
nowSucceed => [],
|
stillSucceed => [],
|
||||||
nowFail => [],
|
stillFail => [],
|
||||||
new => [],
|
nowSucceed => [],
|
||||||
removed => [],
|
nowFail => [],
|
||||||
unfinished => [],
|
new => [],
|
||||||
aborted => [],
|
removed => [],
|
||||||
failed => [],
|
unfinished => [],
|
||||||
});
|
aborted => [],
|
||||||
|
failed => [],
|
||||||
|
},
|
||||||
|
"empty list of jobs returns empty diff"
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
subtest "2 different jobs" => sub {
|
subtest "2 different jobs" => sub {
|
||||||
|
|
Loading…
Reference in a new issue