mirror of
https://github.com/mudler/luet.git
synced 2025-09-01 23:37:07 +00:00
Make Expand and Revdeps consume a database
This commit is contained in:
committed by
Ettore Di Giacinto
parent
595c10f357
commit
556668fcc4
@@ -665,7 +665,12 @@ var _ = Describe("Solver", func() {
|
||||
old := pkg.NewPackage("A", "1.3.1", []*pkg.DefaultPackage{}, []*pkg.DefaultPackage{})
|
||||
|
||||
It("Expands correctly", func() {
|
||||
lst, err := a.Expand(&[]pkg.Package{a1, a11, a01, a02, a03, old})
|
||||
definitions := pkg.NewInMemoryDatabase(false)
|
||||
for _, p := range []pkg.Package{a1, a11, a01, a02, a03, old} {
|
||||
_, err := definitions.CreatePackage(p)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
}
|
||||
lst, err := a.Expand(definitions)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(lst).To(ContainElement(a11))
|
||||
Expect(lst).To(ContainElement(a1))
|
||||
|
Reference in New Issue
Block a user