Skip to content

Commit fab88ea

Browse files
committed
Fix linting
1 parent adbd8a0 commit fab88ea

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tests/e2e/e2e_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ func TestMain(m *testing.M) {
6868

6969
func TestE2e(t *testing.T) {
7070
// Find the paths of all e2e test files in test test directory.
71-
search_glob := filepath.Join(filepath.Dir(setting.AppPath), "tests", "e2e", "*.test.e2e.js")
72-
paths, err := filepath.Glob(search_glob)
71+
searchGlob := filepath.Join(filepath.Dir(setting.AppPath), "tests", "e2e", "*.test.e2e.js")
72+
paths, err := filepath.Glob(searchGlob)
7373
if err != nil {
7474
t.Fatal(err)
7575
} else if len(paths) == 0 {
76-
t.Fatal(fmt.Errorf("No e2e tests found in %s", search_glob))
76+
t.Fatal(fmt.Errorf("No e2e tests found in %s", searchGlob))
7777
}
7878

7979
// Create new test for each input file

tests/test_utils.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@ import (
2929
"github.com/stretchr/testify/assert"
3030
)
3131

32-
func InitTest(require_gitea bool) {
32+
func InitTest(requireGitea bool) {
3333
giteaRoot := base.SetupGiteaRoot()
3434
if giteaRoot == "" {
3535
fmt.Println("Environment variable $GITEA_ROOT not set")
3636
os.Exit(1)
3737
}
38-
if require_gitea {
38+
if requireGitea {
3939
giteaBinary := "gitea"
4040
if runtime.GOOS == "windows" {
4141
giteaBinary += ".exe"

0 commit comments

Comments
 (0)