Skip to content

Commit

Permalink
update test name
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiling-J committed Oct 25, 2024
1 parent fc81f05 commit a11e49d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ jobs:
- name: Upload coverage to codecov.io
uses: codecov/codecov-action@v3

test-race-nopool:
name: test-race-nopool
test-correctness-nopool:
name: test-correctness-nopool
strategy:
matrix:
go: ["1.23.x"]
Expand All @@ -59,10 +59,10 @@ jobs:
- uses: actions/checkout@v2

- name: Test
run: go test ./... -run=TestCacheRace_NoPool -count=1 -race
run: go test ./... -run=TestCacheCorrectness_NoPool -count=1 -race

test-race-pool:
name: test-race-pool
test-correctness-pool:
name: test-correctness-pool
strategy:
matrix:
go: ["1.23.x"]
Expand All @@ -76,7 +76,7 @@ jobs:
- uses: actions/checkout@v2

- name: Test
run: go test ./... -run=TestCacheRace_EntryPool -count=1
run: go test ./... -run=TestCacheCorrectness_EntryPool -count=1

test-os:
name: test-os
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
test:
go test -race -skip=TestCacheRace_ ./...

test-race-pool:
go test ./... -run=TestCacheRace_EntryPool -count=1
test-correct-pool:
go test ./... -run=TestCacheCorrectness_EntryPool -count=1

test-race-nopool:
go test ./... -run=TestCacheRace_NoPool -count=1 -race
test-correct-nopool:
go test ./... -run=TestCacheCorrectness_NoPool -count=1 -race

testx:
go test ./... -v -failfast
Expand Down
8 changes: 4 additions & 4 deletions cache_race_test.go → cache_correctness_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ func getSet(t *testing.T, entrypool bool) {
}
}

func TestCacheRace_EntryPool_GetSet(t *testing.T) {
func TestCacheCorrectness_EntryPool_GetSet(t *testing.T) {
getSet(t, true)

}
func TestCacheRace_NoPool_GetSet(t *testing.T) {
func TestCacheCorrectness_NoPool_GetSet(t *testing.T) {
getSet(t, false)

}
Expand Down Expand Up @@ -148,10 +148,10 @@ func getSetDeleteExpire(t *testing.T, entrypool bool) {
}
}

func TestCacheRace_EntryPool_GetSetDeleteExpire(t *testing.T) {
func TestCacheCorrectness_EntryPool_GetSetDeleteExpire(t *testing.T) {
getSetDeleteExpire(t, true)
}

func TestCacheRace_NoPool_GetSetDeleteExpire(t *testing.T) {
func TestCacheCorrectness_NoPool_GetSetDeleteExpire(t *testing.T) {
getSetDeleteExpire(t, false)
}

0 comments on commit a11e49d

Please sign in to comment.