From 72cab483dfb9e9be0b83031e733370fcc444466c Mon Sep 17 00:00:00 2001 From: rigolden Date: Mon, 27 Jul 2020 14:21:46 -0300 Subject: [PATCH] fix: input to CreateProject test --- default_api_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/default_api_test.go b/default_api_test.go index cdb2e11..c1c2d49 100644 --- a/default_api_test.go +++ b/default_api_test.go @@ -772,7 +772,7 @@ func TestDefaultApiService_CreateProject(t *testing.T) { client *APIClient } type args struct { - body interface{} + body Project } tests := []struct { name string @@ -781,7 +781,7 @@ func TestDefaultApiService_CreateProject(t *testing.T) { want *APIResponse wantErr, integrationTest bool }{ - {"networkErrorContextExceeded", fields{client: generateConfigFake()}, args{struct{}{}}, &APIResponse{Message: "Post https://stash.domain.com/rest/api/1.0/projects: context canceled"}, true, false}, + {"networkErrorContextExceeded", fields{client: generateConfigFake()}, args{Project{}}, &APIResponse{Message: "Post https://stash.domain.com/rest/api/1.0/projects: context canceled"}, true, false}, } for _, tt := range tests { if tt.integrationTest != runIntegrationTests {