Skip to content

Commit e182718

Browse files
committed
release 0.2.5
1 parent bd86fc0 commit e182718

File tree

4 files changed

+7
-39
lines changed

4 files changed

+7
-39
lines changed

.idea/workspace.xml

+1-34
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ plugins {
1212
}
1313

1414
group = "com.github.smaugfm"
15-
version = "0.2.4"
15+
val version: String by project
1616

1717
val myMavenRepoReadUrl: String by project
1818
val myMavenRepoReadUsername: String by project

gradle.properties

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version=0.2.5
12
kotlin.code.style=official
23
org.gradle.parallel=true
34
org.gradle.caching=true

src/test/kotlin/com/github/smaugfm/util/ExpiryContainerTest.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ class ExpiryContainerTest {
1717
val delay = 100L
1818
val tolerance = 10
1919

20-
val container = ExpiringMap<Int>(Duration.milliseconds(delay).toJavaDuration())
20+
val container = ExpiringMap<String, Int>(Duration.milliseconds(delay))
2121

2222
fun checkOne(item: Int) {
2323
fun contains(): Boolean =
24-
container.with {
25-
contains(item)
24+
container.consumeCollection {
25+
contains(item.toString())
2626
}
2727

28-
container.add(item)
28+
container.add(item.toString(), item)
2929
assert(contains())
3030
Thread.sleep(delay + tolerance)
3131
assert(!contains())

0 commit comments

Comments
 (0)