snapshot: FilterLatestRefs returns nothing as it deals with a pointer.

This commit is contained in:
Ryan Uber
2014-04-22 23:33:30 -07:00
parent 708fd800df
commit 6c3b2f686e
3 changed files with 9 additions and 9 deletions
+3 -3
View File
@@ -304,9 +304,9 @@ func (s *PackageRefListSuite) TestFilterLatestRefs(c *C) {
rl.Add(packages[7])
rl.Add(packages[7])
prl := NewPackageRefListFromPackageList(rl)
merged := FilterLatestRefs(prl)
result := NewPackageRefListFromPackageList(rl)
FilterLatestRefs(result)
c.Check(toStrSlice(merged), DeepEquals,
c.Check(toStrSlice(result), DeepEquals,
[]string{"Pi386 dpkg 1.6", "Pi386 lib 1.2"})
}