Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

Commit

Permalink
cache: Fix race conditions in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bakape committed May 4, 2019
1 parent 80c1b9a commit 265980a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cache/getters_test.go
Expand Up @@ -10,6 +10,7 @@ import (

func TestGetJSON(t *testing.T) {
Clear()
config.Server.CacheSize = 128 * (1 << 20)

var fetches, counterChecks int
key := ThreadKey(33, 3)
Expand Down Expand Up @@ -51,6 +52,7 @@ func assertCount(t *testing.T, action string, std, n int) {

func TestGetHTML(t *testing.T) {
Clear()
config.Server.CacheSize = 128 * (1 << 20)

var fetches, renders int
f := FrontEnd{
Expand Down

0 comments on commit 265980a

Please sign in to comment.