From f32f7fc29ab103d579fbd86ebb97431ea7362470 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 5 Sep 2024 02:56:56 -0400 Subject: [PATCH] tests: update_nics: Fix tracking of update calls The tests weren't failing because there was only one host being updated at a time, but this will change in a future commit. --- t/update_nics.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/update_nics.pl b/t/update_nics.pl index e772021..4fb05d4 100644 --- a/t/update_nics.pl +++ b/t/update_nics.pl @@ -51,10 +51,10 @@ local %ddclient::protocols = ( 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;