Skip to content

Commit

Permalink
Update test cases for :commit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
whitfin committed Sep 25, 2024
1 parent 002a241 commit b976fb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/cachex/actions/fetch_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ defmodule Cachex.Actions.FetchTest do
result = Cachex.fetch(cache, "key", fb_opt)

# verify fetching an existing key
assert(result == {:commit, "yek", purged})
assert(result == {:commit, "yek"})

# fetch back the expiration of the key
expiration = Cachex.ttl!(cache, "key")
Expand Down
2 changes: 1 addition & 1 deletion test/cachex/services/courier_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ defmodule Cachex.Services.CourierTest do
result = Services.Courier.dispatch(cache, "my_key", task)

# check the returned value with the options set
assert result == {:commit, "my_value", [expire: 60000]}
assert result == {:commit, "my_value"}

# check the forwarded task completed (no options)
assert_receive({:ok, "my_value"})
Expand Down

0 comments on commit b976fb3

Please sign in to comment.