t/TaskDispatcher.t: array / arrayref consistency

[?]
Oct 20, 2021, 2:38 AM
IVOH2GWJYQICKNVXJK2CXZHJYTQLQB2EHGWPAFTLIEPI6VBHT24AC

Dependencies

  • [2] SWXGVPJN hydra-notify: extract runPluginsForEvent to a TaskDispatcher
  • [3] I7Q3M7V3 TaskDispatcher: Support re-queueing tasks, and dropping tasks after 100 failures.

Change contents

  • replacement in t/TaskDispatcher.t at line 90
    [2.5702][2.5702:5784]()
    my @plugins = [make_noop_plugin("bogus-1"), make_noop_plugin("bogus-2")];
    [2.5702]
    [2.5784]
    my $plugins = [make_noop_plugin("bogus-1"), make_noop_plugin("bogus-2")];
  • replacement in t/TaskDispatcher.t at line 92
    [2.5785][2.5785:5866]()
    my $dispatcher = Hydra::TaskDispatcher->new($db, $prometheus, @plugins);
    [2.5785]
    [2.5866]
    my $dispatcher = Hydra::TaskDispatcher->new($db, $prometheus, $plugins);
  • replacement in t/TaskDispatcher.t at line 99
    [2.6047][2.6047:6248]()
    my @expected_names = [ "bogus-1", "bogus-2" ];
    my @actual_names = sort([
    $event->{"called_with"}[0]->name,
    $event->{"called_with"}[1]->name
    ]);
    [2.6047]
    [2.6248]
    my @expected_names = ( "bogus-1", "bogus-2" );
    my @actual_names = sort(
    $event->{"called_with"}[0]->name,
    $event->{"called_with"}[1]->name
    );
  • replacement in t/TaskDispatcher.t at line 105
    [2.6260][2.6260:6316]()
    @actual_names,
    @expected_names,
    [2.6260]
    [2.6316]
    \@actual_names,
    \@expected_names,
  • replacement in t/TaskDispatcher.t at line 115
    [2.6560][2.6560:6628]()
    my @plugins = [$bogus_plugin, make_noop_plugin("bogus-2")];
    [2.6560]
    [2.6628]
    my $plugins = [$bogus_plugin, make_noop_plugin("bogus-2")];
  • replacement in t/TaskDispatcher.t at line 117
    [2.6629][2.6629:6710]()
    my $dispatcher = Hydra::TaskDispatcher->new($db, $prometheus, @plugins);
    [2.6629]
    [2.6710]
    my $dispatcher = Hydra::TaskDispatcher->new($db, $prometheus, $plugins);
  • replacement in t/TaskDispatcher.t at line 134
    [2.7269][2.7269:7337]()
    my @plugins = [$bogus_plugin, make_noop_plugin("bogus-2")];
    [2.7269]
    [2.7337]
    my $plugins = [$bogus_plugin, make_noop_plugin("bogus-2")];
  • replacement in t/TaskDispatcher.t at line 136
    [2.7338][2.7338:7419]()
    my $dispatcher = Hydra::TaskDispatcher->new($db, $prometheus, @plugins);
    [2.7338]
    [2.7419]
    my $dispatcher = Hydra::TaskDispatcher->new($db, $prometheus, $plugins);