Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwiniag committed Dec 22, 2024
1 parent 42d8742 commit dc557a6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions internal/restapi/v1/integrations/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@ func TestGetIntegration(t *testing.T) {
assert.Equal(t, "linear", res.Type)

// Test case: Invalid UUID
invalidUUID := "c60c700e-3dd9-4059-8372-f772358c"
parsedUUID, err := uuid.Parse(invalidUUID)
parsedUUID, _ := uuid.Parse("c60c700e-3dd9-4059-8372-f772358c")
req = integrations.GetIntegrationRequests{parsedUUID}
err = handler(context.Background(), req, res)
assert.Error(t, err)
Expand Down
8 changes: 4 additions & 4 deletions internal/restapi/v1/integrations/put_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package integrations_test

import (
"context"
"fmt"
"github.com/shinobistack/gokakashi/internal/restapi/v1/integrations"
"testing"

Expand Down Expand Up @@ -48,8 +49,7 @@ func TestUpdateIntegration(t *testing.T) {
func TestUpdateIntegration_InvalidUUID(t *testing.T) {
client := enttest.Open(t, "sqlite3", "file:ent?mode=memory&cache=shared&_fk=1")
defer client.Close()
invalidUUID := "c60c700e-3dd9-4059-8372-f77235"
parsedUUID, err := uuid.Parse(invalidUUID)
parsedUUID, _ := uuid.Parse("c60c700e-3dd9-4059-8372-f77235")

req := integrations.UpdateIntegrationRequest{
ID: parsedUUID,
Expand All @@ -58,8 +58,8 @@ func TestUpdateIntegration_InvalidUUID(t *testing.T) {
var res integrations.GetIntegrationResponse

handler := integrations.UpdateIntegration(client)
err = handler(context.Background(), req, &res)

err := handler(context.Background(), req, &res)
fmt.Println(err)
assert.Error(t, err)
}

Expand Down

0 comments on commit dc557a6

Please sign in to comment.