diff --git a/tests/system-tests/internal/platform/platform.go b/tests/system-tests/internal/platform/platform.go index 5830c381a..1ea8c4907 100644 --- a/tests/system-tests/internal/platform/platform.go +++ b/tests/system-tests/internal/platform/platform.go @@ -94,17 +94,10 @@ func GetLocalMirrorRegistryURL(apiClient *clients.Settings) (string, error) { return "", err } - lastIndex := len(mirrorRegistryMap) - 1 - iter := 0 - for registryURL, auth := range mirrorRegistryMap { glog.V(90).Infof("registry URL: %s, auth: %s", registryURL, auth) - if iter == lastIndex { - return registryURL, nil - } - - iter++ + return registryURL, nil } return "", fmt.Errorf("local mirror registry url not found") diff --git a/tests/system-tests/vcore/internal/vcorecommon/loki-operator.go b/tests/system-tests/vcore/internal/vcorecommon/loki-operator.go index 1d9775146..62719e820 100644 --- a/tests/system-tests/vcore/internal/vcorecommon/loki-operator.go +++ b/tests/system-tests/vcore/internal/vcorecommon/loki-operator.go @@ -298,9 +298,7 @@ func CreateCLOInstance(ctx SpecContext) { clusterLoggingObj := clusterlogging.NewBuilder(APIClient, vcoreparams.CLOInstanceName, vcoreparams.CLONamespace) if clusterLoggingObj.Exists() { - err := clusterLoggingObj.Delete() - Expect(err).ToNot(HaveOccurred(), fmt.Sprintf("Failed to delete ClusterLogging %s csv name from the %s namespace", - vcoreparams.CLOInstanceName, vcoreparams.CLONamespace)) + _ = clusterLoggingObj.Delete() } glog.V(vcoreparams.VCoreLogLevel).Infof("Create new Cluster Logging instance %s in namespace %s",