Skip to content

Commit

Permalink
Remove irrelevant tests
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Aug 14, 2024
1 parent 280706a commit 895d210
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
15 changes: 0 additions & 15 deletions tests/jvm/src/test/scala/cats/effect/std/MapRefJVMSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -104,21 +104,6 @@ class MapRefJVMSpec extends BaseSpec {
op.map(a => a must_=== true)
}

"access - setter should fail if called twice" in real {
val op = for {
r <- MapRef.ofScalaConcurrentTrieMap[IO, Unit, Int]
_ <- r(()).set(Some(0))
accessed <- r(()).access
(value, setter) = accessed
cond1 <- setter(value.map(_ + 1))
_ <- r(()).set(value)
cond2 <- setter(None)
result <- r(()).get
} yield cond1 && !cond2 && result == Some(0)

op.map(a => a must_=== true)
}

"tryUpdate - modification occurs successfully" in real {
val op = for {
r <- MapRef.ofScalaConcurrentTrieMap[IO, Unit, Int]
Expand Down
15 changes: 0 additions & 15 deletions tests/shared/src/test/scala/cats/effect/std/MapRefSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -237,21 +237,6 @@ class MapRefSpec extends BaseSpec {
op.map(a => a must_=== true)
}

"access - setter should fail if called twice" in real {
val op = for {
r <- MapRef.ofConcurrentHashMap[IO, Unit, Int]()
_ <- r(()).set(Some(0))
accessed <- r(()).access
(value, setter) = accessed
cond1 <- setter(value.map(_ + 1))
_ <- r(()).set(value)
cond2 <- setter(None)
result <- r(()).get
} yield cond1 && !cond2 && result == Some(0)

op.map(a => a must_=== true)
}

"tryUpdate - modification occurs successfully" in real {
val op = for {
r <- MapRef.ofConcurrentHashMap[IO, Unit, Int]()
Expand Down

0 comments on commit 895d210

Please sign in to comment.