Skip to content

Commit

Permalink
linter tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszpohl committed Dec 10, 2024
1 parent 0533765 commit 54ae34c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/controllers/device_data_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -940,14 +940,13 @@ func TestUserDevicesController_ErrorOnAllErrorCodesClearedByTokenID(t *testing.T
// actual clear
request := test.BuildRequest("POST", fmt.Sprintf("/user/vehicle/%d/error-codes/clear", ud.TokenID), "")
response, _ := app.Test(request)
body, _ := io.ReadAll(response.Body)

assert.Equal(t, response.StatusCode, fiber.StatusOK)

// all codes should be cleared
request = test.BuildRequest("POST", fmt.Sprintf("/user/vehicle/%d/error-codes/clear", ud.TokenID), "")
response, _ = app.Test(request)
body, _ = io.ReadAll(response.Body)
body, _ := io.ReadAll(response.Body)

assert.Equal(t, response.StatusCode, fiber.StatusTooManyRequests)
assert.Equal(t, "all error codes already cleared", string(body))
Expand Down

0 comments on commit 54ae34c

Please sign in to comment.