Skip to content

Commit dee5fc6

Browse files
fix lint issue
1 parent f5bedc2 commit dee5fc6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

internal/commands/project_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
package commands
44

55
import (
6-
"github.com/checkmarx/ast-cli/internal/wrappers"
76
"testing"
87
"time"
98

109
asserts "github.com/stretchr/testify/assert"
1110

1211
errorConstants "github.com/checkmarx/ast-cli/internal/constants/errors"
12+
"github.com/checkmarx/ast-cli/internal/wrappers"
1313
"github.com/checkmarx/ast-cli/internal/wrappers/mock"
1414
"github.com/checkmarx/ast-cli/internal/wrappers/utils"
1515

test/integration/project_test.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ package integration
44

55
import (
66
"fmt"
7+
asserts "github.com/stretchr/testify/assert"
78
"io"
89
"io/ioutil"
910
"log"
@@ -375,11 +376,11 @@ func TestProjectShow_MainBranch_Exist(t *testing.T) {
375376
flag(params.ProjectName), projectName,
376377
flag(params.SourcesFlag), "data/insecure.zip",
377378
flag(params.BranchFlag), "dummy_branch",
378-
flag(params.BranchPrimaryFlag), "dummy_branch",
379+
flag(params.BranchPrimaryFlag),
379380
}
380-
err, _ = executeCommand(t, args...)
381+
err, _ := executeCommand(t, args...)
381382
assert.NilError(t, err)
382383

383-
project := showProject(t, createdProject.ID)
384+
project := showProject(t, projectID)
384385
asserts.Contains(t, project.MainBranch, "dummy_branch", "Project main branch should be 'dummy_branch'")
385386
}

0 commit comments

Comments
 (0)