integration-cli: createNetwork: add t.Helper()

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
This commit is contained in:
Albin Kerouanton 2024-04-18 09:43:40 +02:00
parent 9c4c3d7443
commit 1854b22984

View file

@ -267,6 +267,8 @@ func getNetworkResource(c *testing.T, id string) *types.NetworkResource {
}
func createNetwork(c *testing.T, config types.NetworkCreateRequest, expectedStatusCode int) string {
c.Helper()
resp, body, err := request.Post(testutil.GetContext(c), "/networks/create", request.JSONBody(config))
assert.NilError(c, err)
defer resp.Body.Close()