fix: removing race from ci

This commit is contained in:
Reinaldy Rafli 2021-11-16 12:01:41 +07:00
parent 72dc4921df
commit 07a1b112fe
No known key found for this signature in database
GPG Key ID: CFDB9400255D8CB6
6 changed files with 16 additions and 16 deletions

View File

@ -15,7 +15,7 @@ jobs:
- name: Go vet - name: Go vet
run: go vet -v run: go vet -v
- name: Go test - name: Go test
run: go test -v -race -coverprofile=coverage.out -covermode=atomic -failfast run: go test -v -coverprofile=coverage.out -covermode=atomic -failfast
- uses: github/codeql-action/init@v1 - uses: github/codeql-action/init@v1
with: with:
languages: go languages: go

View File

@ -35,7 +35,7 @@ func TestExists(t *testing.T) {
} }
} }
func TestExists_Conccurency(t *testing.T) { func TestExists_Concurrency(t *testing.T) {
rand := strconv.Itoa(rand.Int()) rand := strconv.Itoa(rand.Int())
c := cheapcash.Default() c := cheapcash.Default()

View File

@ -24,7 +24,7 @@ func TestDelete(t *testing.T) {
} }
} }
func TestDelete_Conccurency(t *testing.T) { func TestDelete_Concurrency(t *testing.T) {
rand := strconv.Itoa(rand.Int()) rand := strconv.Itoa(rand.Int())
c := cheapcash.Default() c := cheapcash.Default()
err := c.Write(rand, []byte("value")) err := c.Write(rand, []byte("value"))

View File

@ -26,7 +26,7 @@ func TestRead(t *testing.T) {
} }
} }
func TestRead_Conccurency(t *testing.T) { func TestRead_Concurrency(t *testing.T) {
rand := strconv.Itoa(rand.Int()) rand := strconv.Itoa(rand.Int())
c := cheapcash.Default() c := cheapcash.Default()

View File

@ -15,7 +15,7 @@ func TestWrite(t *testing.T) {
} }
} }
func TestWrite_Conccurency(t *testing.T) { func TestWrite_Concurrency(t *testing.T) {
c := cheapcash.Default() c := cheapcash.Default()
var wg sync.WaitGroup var wg sync.WaitGroup