Переглянути джерело

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

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
Albin Kerouanton 1 рік тому
батько
коміт
1854b22984
1 змінених файлів з 2 додано та 0 видалено
  1. 2 0
      integration-cli/docker_api_network_test.go

+ 2 - 0
integration-cli/docker_api_network_test.go

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