Skip to content

Commit

Permalink
Fixes typo in test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
kevburnsjr committed Sep 22, 2019
1 parent 79d9443 commit 4d8e9c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions microcache_norace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"time"
)

// StaleWhilRevalidate
func TestStaleWhilRevalidate(t *testing.T) {
// StaleWhileRevalidate
func TestStaleWhileRevalidate(t *testing.T) {
testMonitor := &monitorFunc{interval: 100 * time.Second, logFunc: func(Stats) {}}
cache := New(Config{
TTL: 30 * time.Second,
Expand All @@ -25,7 +25,7 @@ func TestStaleWhilRevalidate(t *testing.T) {
"/",
})
if testMonitor.misses != 1 || testMonitor.hits != 1 {
t.Log("StaleWhilRevalidate not respected - got", testMonitor.misses, "misses")
t.Log("StaleWhileRevalidate not respected - got", testMonitor.misses, "misses")
t.Fail()
}

Expand All @@ -39,7 +39,7 @@ func TestStaleWhilRevalidate(t *testing.T) {
"/",
})
if testMonitor.stales != 1 || testMonitor.hits != 2 {
t.Log("StaleWhilRevalidate not respected - got", testMonitor.stales, "stales")
t.Log("StaleWhileRevalidate not respected - got", testMonitor.stales, "stales")
t.Fail()
}
cache.Stop()
Expand Down

0 comments on commit 4d8e9c2

Please sign in to comment.