From d9df61ac5f6d6e4a4dab7d0fcc92cee5cb50f7cb Mon Sep 17 00:00:00 2001 From: Michael Sverdlov Date: Wed, 8 Jan 2025 19:00:48 +0200 Subject: [PATCH] Improve upload archive progress bar Signed-off-by: Michael Sverdlov --- artifactory/commands/setup/setup_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artifactory/commands/setup/setup_test.go b/artifactory/commands/setup/setup_test.go index 1433b3de1..7fffd7724 100644 --- a/artifactory/commands/setup/setup_test.go +++ b/artifactory/commands/setup/setup_test.go @@ -374,10 +374,10 @@ func testBuildToolLoginCommandConfigureDotnetNuget(t *testing.T, packageManager } func TestGetSupportedPackageManagersList(t *testing.T) { - result := GetSupportedPackageManagersList() + packageManagersList := GetSupportedPackageManagersList() // Check that "Go" is before "Pip", and "Pip" is before "Npm" - assert.GreaterOrEqual(t, slices.Index(result, project.Go.String()), slices.Index(result, project.Pip.String()), "Go should come before Pip") - assert.GreaterOrEqual(t, slices.Index(result, project.Pip.String()), slices.Index(result, project.Npm.String()), "Pip should come before Npm") + assert.Less(t, slices.Index(packageManagersList, project.Go.String()), slices.Index(packageManagersList, project.Pip.String()), "Go should come before Pip") + assert.Less(t, slices.Index(packageManagersList, project.Pip.String()), slices.Index(packageManagersList, project.Npm.String()), "Pip should come before Npm") } func TestIsSupportedPackageManager(t *testing.T) {