Skip to content

Commit

Permalink
fix merging errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiovincenzi committed Oct 18, 2023
1 parent d72e1bb commit 0a3d603
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
2 changes: 1 addition & 1 deletion tests/integration/golang/aim/app/update_app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func (s *UpdateAppTestSuite) Test_Error() {
).WithResponse(
&resp,
).DoRequest(
"/apps/%s", app.ID,
"/apps/%s", tt.ID,
),
)
assert.Contains(s.T(), resp.Message, tt.error)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package run
import (
"context"
"net/http"
"net/http"
"testing"
"time"

Expand Down Expand Up @@ -181,20 +180,16 @@ func (s *UpdateDashboardTestSuite) Test_Error() {
for _, tt := range tests {
s.T().Run(tt.name, func(T *testing.T) {
var resp response.Error
assert.Nil(s.T(), s.AIMClient.WithMethod(
http.MethodPut,
).WithRequest(
assert.Nil(s.T(), s.AIMClient.WithMethod(
http.MethodPut,
).WithRequest(
tt.requestBody,
).WithResponse(
).WithResponse(
&resp,
).DoRequest(
"/dashboards/%s", dashboard.ID,
"/dashboards/%s", tt.ID,
))
assert.Contains(s.T(), resp.Message, "cannot unmarshal")
assert.Contains(s.T(), resp.Message, tt.error)
})
}
}
12 changes: 1 addition & 11 deletions tests/integration/golang/aim/experiment/delete_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"context"
"database/sql"
"net/http"
"net/http"
"testing"
"time"

Expand Down Expand Up @@ -72,15 +71,6 @@ func (s *DeleteExperimentTestSuite) Test_Ok() {
length := len(experiments)

var resp response.DeleteExperiment
assert.Nil(
s.T(),
s.AIMClient.WithMethod(
http.MethodDelete,
).WithResponse(
&resp,
).DoRequest(
"/experiments/%d", *experiment.ID,
),
assert.Nil(
s.T(),
s.AIMClient.WithMethod(
Expand Down Expand Up @@ -139,7 +129,7 @@ func (s *DeleteExperimentTestSuite) Test_Error() {
"/experiments/%s", tt.ID,
),
)
assert.Contains(s.T(), resp.Error(), "Not Found")
assert.Contains(s.T(), resp.Error(), tt.error)
assert.NoError(s.T(), err)
})
}
Expand Down

0 comments on commit 0a3d603

Please sign in to comment.