Skip to content

Commit 8fbf54b

Browse files
committed
feat: fix CI
1 parent ac06aed commit 8fbf54b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ jobs:
1212
go-version-file: "go.mod"
1313
- name: Gather dependencies
1414
run: go mod download
15-
- name: Run coverage
15+
- name: Run test
1616
run: go test -shuffle=on

cmd/sessionizer_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ type args struct {
4141
}
4242

4343
func TestRun(t *testing.T) {
44+
t.Parallel()
4445
tests := []struct {
4546
name string
4647
args args
@@ -70,15 +71,14 @@ func TestRun(t *testing.T) {
7071
}
7172

7273
for _, tt := range tests {
73-
tt := tt
7474
t.Run(tt.name, func(t *testing.T) {
7575
t.Parallel()
7676
cmd := newMockCmd()
7777
args := []string{"tmux-sessionizer"}
7878
if tt.args.cmd != "" {
7979
args = append(args, tt.args.cmd)
8080
}
81-
err := cmd.Run(context.Background(), args)
81+
err := cmd.Run(t.Context(), args)
8282
if !errors.Is(err, tt.wantErr) {
8383
t.Errorf("expected error %v, got %v", tt.wantErr, err)
8484
}

0 commit comments

Comments
 (0)