Skip to content

Commit

Permalink
Fix flaky "modify" test
Browse files Browse the repository at this point in the history
  • Loading branch information
i-surkov committed Jul 3, 2023
1 parent ea011a6 commit f74021e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/scala/com/evolution/scache/CacheSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1480,7 +1480,7 @@ class CacheSpec extends AsyncFunSuite with Matchers {
(lastValueRemoved1, lastRelease1) <- cache.modify(1)(lastValue => (lastValue, Directive.Remove))
(lastValueRemoved2, lastRelease2) <- cache.modify(2)(lastValue => (lastValue, Directive.Remove))
(lastValueRemoved3, lastRelease3) <- cache.modify(3)(lastValue => (lastValue, Directive.Remove))
_ <- List(lastRelease0, lastRelease1, lastRelease2, lastRelease2).flatten.sequence_
_ <- List(lastRelease0, lastRelease1, lastRelease2, lastRelease3).flatten.sequence_

releasedValuesSum <- releaseCounter.get

Expand Down

0 comments on commit f74021e

Please sign in to comment.