Skip to content

Commit

Permalink
Fix issues from PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
0xdev22 committed Apr 25, 2024
1 parent 5dffcc6 commit 2880e7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/controllers/user_integrations_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1106,13 +1106,13 @@ func (s *UserIntegrationsControllerTestSuite) TestGetUserDeviceIntegration() {
res, err := s.app.Test(request, 60*1000)
s.Assert().NoError(err)

s.Require().True(res.StatusCode == fiber.StatusOK)
s.Require().Equal(res.StatusCode, fiber.StatusOK)
body, _ := io.ReadAll(res.Body)

defer res.Body.Close()

actual := GetUserDeviceIntegrationResponse{}
s.Assert().NoError(json.Unmarshal(body, &actual))
s.Require().NoError(json.Unmarshal(body, &actual))

s.Assert().True(actual.Tesla.IsVirtualTokenConnected)
s.Assert().Equal(models.UserDeviceAPIIntegrationStatusActive, actual.Status)
Expand Down
1 change: 0 additions & 1 deletion internal/services/tesla_fleet_api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ func (t *teslaFleetAPIService) VirtualTokenConnectionStatus(ctx context.Context,

jsonBody := fmt.Sprintf(`{"vins": [%q]}`, vin)
body := strings.NewReader(jsonBody)
// bytes.NewReader(jsonBody)

resp, err := t.performRequest(ctx, url, token, http.MethodPost, body)
if err != nil {
Expand Down

0 comments on commit 2880e7b

Please sign in to comment.