Skip to content

Commit

Permalink
update the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
knbr13 committed Apr 6, 2024
1 parent dc01253 commit 5774c8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mcache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func TestKeys(t *testing.T) {
}
}

func TestClose(t *testing.T) {
func TestPurge(t *testing.T) {
db := newManual[string, string](&CacheBuilder[string, string]{
size: 10,
tmIvl: 14,
Expand All @@ -217,7 +217,7 @@ func TestClose(t *testing.T) {
db.Set("2", "two")
db.SetWithTimeout("3", "three", time.Second)

db.Close()
db.Purge()

select {
case _, ok := <-db.stopCh:
Expand Down

0 comments on commit 5774c8a

Please sign in to comment.