osbuild-composer: Move InitWeldr code into weldr.New
This will make it easier to support new features related to building for other distribution releases.
This commit is contained in:
parent
a330d84739
commit
9818b4b6b1
4 changed files with 62 additions and 35 deletions
|
|
@ -60,7 +60,7 @@ func executeTests(m *testing.M) int {
|
|||
})
|
||||
|
||||
logger := log.New(os.Stdout, "", 0)
|
||||
api := weldr.New(rpm, arch, distro, rr, logger, fixture.Store, fixture.Workers, "")
|
||||
api := weldr.NewTestAPI(rpm, arch, distro, rr, logger, fixture.Store, fixture.Workers, "")
|
||||
server := http.Server{Handler: api}
|
||||
defer server.Close()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue