From 01c44c33ff172d14b4735b0a8b16dbb080887454 Mon Sep 17 00:00:00 2001 From: eyalbe4 Date: Wed, 25 Dec 2024 20:52:12 +0200 Subject: [PATCH] Fix tests --- common/commands/command.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/commands/command.go b/common/commands/command.go index ed781b6dd..f103dfda7 100644 --- a/common/commands/command.go +++ b/common/commands/command.go @@ -63,14 +63,14 @@ func reportUsage(command Command, channel chan<- bool) { } artifactoryVersion, err := serviceManager.GetVersion() if err != nil { - log.Debug("Usage reporting. Failed getting the Artifactory", err.Error()) + log.Debug("Usage reporting. Failed getting the version of Artifactory", err.Error()) return } var wg sync.WaitGroup // Report the usage to Artifactory's Call Home API. - if version.NewVersion(ArtifactoryVersion).AtLeast(minCallHomeArtifactoryVersion) { + if version.NewVersion(artifactoryVersion).AtLeast(minCallHomeArtifactoryVersion) { wg.Add(1) go func() { defer wg.Done() @@ -79,7 +79,7 @@ func reportUsage(command Command, channel chan<- bool) { } // Report the usage to the Visibility System. - if version.NewVersion(ArtifactoryVersion).AtLeast(minVisibilitySystemArtifactoryVersion) { + if version.NewVersion(artifactoryVersion).AtLeast(minVisibilitySystemArtifactoryVersion) { wg.Add(1) go func() { defer wg.Done()