weldr: add missing arguments to constructor calls
In the test we don't need to serialize the state, so pass nil to the costructor.
This commit is contained in:
parent
da887a43fb
commit
3533597dde
1 changed files with 2 additions and 2 deletions
|
|
@ -111,13 +111,13 @@ func TestBasic(t *testing.T) {
|
|||
}
|
||||
|
||||
for _, c := range cases {
|
||||
api := weldr.New(repo, packages, nil)
|
||||
api := weldr.New(repo, packages, nil, nil, nil)
|
||||
testRoute(t, api, "GET", c.Path, ``, c.ExpectedStatus, c.ExpectedJSON)
|
||||
}
|
||||
}
|
||||
|
||||
func TestBlueprints(t *testing.T) {
|
||||
api := weldr.New(repo, packages, nil)
|
||||
api := weldr.New(repo, packages, nil, nil, nil)
|
||||
|
||||
testRoute(t, api, "POST", "/api/v0/blueprints/new",
|
||||
`{"name":"test","description":"Test","packages":[{"name":"httpd","version":"2.4.*"}],"version":"0"}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue