Skip to content

Commit

Permalink
tests: update_nics: Fix tracking of update calls
Browse files Browse the repository at this point in the history
The tests weren't failing because there was only one host being
updated at a time, but this will change in a future commit.
  • Loading branch information
rhansen committed Sep 6, 2024
1 parent a7abfcb commit f32f7fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/update_nics.pl
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ sub run_httpd {
update => sub {
my $self = shift;
ddclient::debug('in update');
push(@updates, [@_]);
for my $h (@_) {
local $ddclient::_l = ddclient::pushlogctx($h);
ddclient::debug('updating host');
push(@updates, [@_]);
$ddclient::recap{$h}{status} = 'good';
$ddclient::recap{$h}{ip} = delete($ddclient::config{$h}{wantip});
$ddclient::recap{$h}{mtime} = $ddclient::now;
Expand Down

0 comments on commit f32f7fc

Please sign in to comment.