Skip to content

Commit ed8bd35

Browse files
committed
Fix UT
1 parent 5fbe9d2 commit ed8bd35

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/util/k8sutil/helm/chart_manager_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ func Test_Manager_Tag(t *testing.T) {
9797
mgr, err := NewChartManager(context.Background(), nil, "https://arangodb-platform-dev-chart-registry.s3.amazonaws.com/index.yaml")
9898
require.NoError(t, err)
9999

100-
repo, ok := mgr.Get("platform_test_example")
100+
require.True(t, len(mgr.Repositories()) > 0)
101+
102+
repo, ok := mgr.Get(mgr.Repositories()[0])
101103
require.True(t, ok)
102104

103105
repo.GetByTag("dev")

0 commit comments

Comments
 (0)