Skip to content

Commit 2d78feb

Browse files
authored
Bump golangci-lint v1.55.2; fix testifylint issues (#48)
1 parent 2342280 commit 2d78feb

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [main]
88

99
env:
10-
GOLANGCI_LINT_VERSION: v1.54.2
10+
GOLANGCI_LINT_VERSION: v1.55.2
1111

1212
jobs:
1313
lint:

.golangci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
run:
22
concurrency: 8
3-
deadline: 10m
43
issues-exit-code: 1
54
tests: true
65

main_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package main
33
import (
44
"testing"
55

6-
"github.com/stretchr/testify/assert"
6+
"github.com/stretchr/testify/require"
77

88
"github.com/alexandear/import-gitlab-commits/internal/testutil"
99
)
@@ -14,7 +14,7 @@ func TestExecute(t *testing.T) {
1414

1515
err := Execute(testutil.NewLog(t))
1616

17-
assert.ErrorContains(t, err, "GITLAB_TOKEN")
17+
require.ErrorContains(t, err, "GITLAB_TOKEN")
1818
})
1919

2020
t.Run("error when wrong GITLAB_BASE_URL", func(t *testing.T) {
@@ -23,7 +23,7 @@ func TestExecute(t *testing.T) {
2323

2424
err := Execute(testutil.NewLog(t))
2525

26-
assert.ErrorContains(t, err, "GITLAB_BASE_URL")
26+
require.ErrorContains(t, err, "GITLAB_BASE_URL")
2727
})
2828

2929
t.Run("error when wrong COMMITTER_NAME", func(t *testing.T) {
@@ -33,7 +33,7 @@ func TestExecute(t *testing.T) {
3333

3434
err := Execute(testutil.NewLog(t))
3535

36-
assert.ErrorContains(t, err, "COMMITTER_NAME")
36+
require.ErrorContains(t, err, "COMMITTER_NAME")
3737
})
3838

3939
t.Run("error when wrong COMMITTER_EMAIL", func(t *testing.T) {
@@ -44,6 +44,6 @@ func TestExecute(t *testing.T) {
4444

4545
err := Execute(testutil.NewLog(t))
4646

47-
assert.ErrorContains(t, err, "COMMITTER_EMAIL")
47+
require.ErrorContains(t, err, "COMMITTER_EMAIL")
4848
})
4949
}

0 commit comments

Comments
 (0)