Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Victor Goklas authored and Jonathan Victor Goklas committed Jun 13, 2024
1 parent 1e9a781 commit e4b4a8d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/api/projects_api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,9 @@ func TestUpdateProject(t *testing.T) {
Stream: "dsp",
Administrators: []string{adminUser},
},
expectedResponse: nil,
expectedResponse: &Response{
code: 200,
},
expectedMessage: map[string]interface{}{
"status": "success",
"message": "Project updated successfully",
Expand Down Expand Up @@ -605,7 +607,7 @@ func TestUpdateProject(t *testing.T) {

assert.Equal(t, tC.expectedResponse.code, rr.Code)
if tC.expectedResponse.code >= 200 && tC.expectedResponse.code < 300 {
if tC.expectedResponse != nil {
if tC.expectedResponse.data != nil {
project := &models.Project{}
err = json.Unmarshal(rr.Body.Bytes(), &project)
assert.NoError(t, err)
Expand Down
2 changes: 2 additions & 0 deletions api/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func TestLoad(t *testing.T) {
AllowCustomTeam: true,
AllowCustomStream: true,
},
UpdateProject: nil,
DefaultSecretStorage: &config.SecretStorage{
Name: "default-secret-storage",
Type: "vault",
Expand Down Expand Up @@ -149,6 +150,7 @@ func TestLoad(t *testing.T) {
AllowCustomTeam: true,
AllowCustomStream: true,
},
UpdateProject: nil,
DefaultSecretStorage: &config.SecretStorage{
Name: "default-secret-storage",
Type: "vault",
Expand Down

0 comments on commit e4b4a8d

Please sign in to comment.