Skip to content

Commit 89c3167

Browse files
committed
run 1 test at a time
1 parent 86750c9 commit 89c3167

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/test.yaml

+3-4
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
run: go test -v -cover ./...
2828

2929
- name: Test with race
30-
run: go test -v -cover -race -count 1 -timeout 20s --tags deadlock_test -run Test_mirror_detect_race ./pkg/mirror/...
31-
32-
- name: Test with repo pool race
33-
run: go test -v -cover -race -count 1 -timeout 60s --tags deadlock_test -run Test_mirror_detect_race_repo_pool ./pkg/mirror/...
30+
run: |
31+
go test -v -cover -race -count 1 -timeout 20s --tags deadlock_test -run Test_mirror_detect_race_clone ./pkg/mirror/...
32+
go test -v -cover -race -count 1 -timeout 60s --tags deadlock_test -run Test_mirror_detect_race_repo_pool ./pkg/mirror/...

pkg/mirror/z_e2e_race_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"time"
1212
)
1313

14-
func Test_mirror_detect_race(t *testing.T) {
14+
func Test_mirror_detect_race_clone(t *testing.T) {
1515
testTmpDir := mustTmpDir(t)
1616
defer os.RemoveAll(testTmpDir)
1717

0 commit comments

Comments
 (0)