Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove various obsolete code #4196

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix
  • Loading branch information
dkhalanskyjb committed Aug 12, 2024
commit 77f91e2cc79f3faf558606a2f4d9bd9b644e68ef
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class MutexCancellationStressTest : TestBase() {
delay(500)
// If we've caught the completion after delay, then there is a chance no progress were made whatsoever, bail out
if (completed.get()) return@launch
val c = counterLocal.map { it.value }
val c = counterLocal.map { it.get() }
for (i in 0 until mutexJobNumber) {
assert(c[i] > lastCounterLocalSnapshot[i]) { "No progress in MutexJob-$i, last observed state: ${c[i]}" }
}
Expand All @@ -76,11 +76,7 @@ class MutexCancellationStressTest : TestBase() {
cancellationJob.join()
mutexJobs.forEach { it.join() }
checkProgressJob.join()
assertEquals(counter, counterLocal.sumOf { it.value })
assertEquals(counter, counterLocal.sumOf { it.get() })
dispatcher.close()
}
}

private inline var AtomicInteger.value
get() = get()
set(value) = set(value)