Skip to content

Commit

Permalink
integration-cli: createNetwork: add t.Helper()
Browse files Browse the repository at this point in the history
Signed-off-by: Albin Kerouanton <albinker@gmail.com>
  • Loading branch information
akerouanton committed Apr 26, 2024
1 parent 115de5f commit 1d5a12d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integration-cli/docker_api_network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1d5a12d

Please sign in to comment.