Update pkg/storage/driver/sql_test.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Sumit Solanki <sumit.solanki@ibm.com>
This commit is contained in:
Sumit Solanki 2026-03-31 11:45:35 +05:30 committed by GitHub
parent ea13f5b646
commit fbac372178
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -610,7 +610,8 @@ func mockGetReleaseCustomLabelsBatch(mock sqlmock.Sqlmock, releases []*rspb.Rele
})
for _, rel := range releases {
for k, v := range rel.Labels {
returnRows.AddRow(rel.Namespace, "", k, v)
releaseKey := fmt.Sprintf("%s.v%d", rel.Name, rel.Version)
returnRows.AddRow(rel.Namespace, releaseKey, k, v)
}
}
eq.WillReturnRows(returnRows).RowsWillBeClosed()