|
|
|
@ -286,7 +286,6 @@ func makeMeSomeReleases(store *storage.Storage, t *testing.T) {
|
|
|
|
assert.Len(t, all, 3, "sanity test: three items added")
|
|
|
|
assert.Len(t, all, 3, "sanity test: three items added")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func makeMeSomeReleasesWithDifferentNamespaces(store *storage.Storage, t *testing.T) {
|
|
|
|
func makeMeSomeReleasesWithDifferentNamespaces(store *storage.Storage, t *testing.T) {
|
|
|
|
t.Helper()
|
|
|
|
t.Helper()
|
|
|
|
one := releaseStub()
|
|
|
|
one := releaseStub()
|
|
|
|
@ -313,7 +312,6 @@ func makeMeSomeReleasesWithDifferentNamespaces(store *storage.Storage, t *testin
|
|
|
|
assert.Len(t, all, 3, "sanity test: three items added")
|
|
|
|
assert.Len(t, all, 3, "sanity test: three items added")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func TestFilterLatestReleases(t *testing.T) {
|
|
|
|
func TestFilterLatestReleases(t *testing.T) {
|
|
|
|
t.Run("should filter old versions of the same release", func(t *testing.T) {
|
|
|
|
t.Run("should filter old versions of the same release", func(t *testing.T) {
|
|
|
|
r1 := releaseStub()
|
|
|
|
r1 := releaseStub()
|
|
|
|
|