Skip to content

Commit

Permalink
Correcting test tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
benjivesterby committed Sep 16, 2021
1 parent 1a9db8a commit 70adc1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ cache := ttl.NewCache(
)
```

The `NewCache` method returns the `ttl.Cache` interface which defines the expected API for storing and accessing data in the cache.
The `NewCache` method returns the `ttl.Cache` interface which defines the expected API for storing and accessing data in the cache.

### Add Data to Cache

Expand All @@ -65,4 +65,4 @@ As with Get, Delete uses a similar pattern to `sync.Map`.

`cache.Delete(ctx, key)`

This deletes the key from the map as well as shuts down the backend routines running that key's processing.
This deletes the key from the map as well as shuts down the backend routines running that key's processing.
2 changes: 1 addition & 1 deletion cache_exported_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ func Test_Set_extension(t *testing.T) {
"500ms -> 3s": {
time.Millisecond * 500,
time.Second * 3,
time.Millisecond,
time.Millisecond * 50,
},
"1s -> 5s": {
time.Second,
Expand Down

0 comments on commit 70adc1f

Please sign in to comment.