weldr: reuse api for all test cases in TestCompose
This commit is contained in:
parent
646fbe93c7
commit
01b2b15ebc
1 changed files with 1 additions and 1 deletions
|
|
@ -128,8 +128,8 @@ func TestBasic(t *testing.T) {
|
|||
require.NoError(t, err)
|
||||
defer os.RemoveAll(tempdir)
|
||||
|
||||
api, _ := createWeldrAPI(tempdir, rpmmd_mock.BaseFixture)
|
||||
for _, c := range cases {
|
||||
api, _ := createWeldrAPI(tempdir, rpmmd_mock.BaseFixture)
|
||||
test.TestRoute(t, api, true, "GET", c.Path, ``, c.ExpectedStatus, c.ExpectedJSON)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue