square / okio

A modern I/O library for Android, Java, and Kotlin Multiplatform.
https://square.github.io/okio/
Apache License 2.0
8.8k stars 1.18k forks source link

`PipeTest.sourceBlocksOnSlowWriter`/`sinkBlocksOnSlowReader` is flaky #1518

Open JakeWharton opened 1 month ago

JakeWharton commented 1 month ago
 okio.PipeTest[jvm] > sourceBlocksOnSlowWriter[jvm] FAILED
    java.lang.AssertionError: expected:<4000.0> but was:<4265.846875000047>
        at org.junit.Assert.fail(Assert.java:89)
        at org.junit.Assert.failNotEquals(Assert.java:835)
        at org.junit.Assert.assertEquals(Assert.java:555)
        at org.junit.Assert.assertEquals(Assert.java:685)
        at okio.PipeTest.assertElapsed(PipeTest.kt:356)
        at okio.PipeTest.sourceBlocksOnSlowWriter(PipeTest.kt:343)
JakeWharton commented 1 month ago
 okio.PipeTest[jvm] > sinkBlocksOnSlowReader[jvm] FAILED
    java.lang.AssertionError: expected:<3000.0> but was:<3484.8014589999802>
        at org.junit.Assert.fail(Assert.java:89)
        at org.junit.Assert.failNotEquals(Assert.java:835)
        at org.junit.Assert.assertEquals(Assert.java:555)
        at org.junit.Assert.assertEquals(Assert.java:685)
        at okio.PipeTest.assertElapsed(PipeTest.kt:356)
        at okio.PipeTest.sinkBlocksOnSlowReader(PipeTest.kt:171)
JakeWharton commented 1 month ago

Again https://github.com/square/okio/actions/runs/11182275912/job/31088199790?pr=1529

JakeWharton commented 3 weeks ago

Again https://github.com/square/okio/actions/runs/11334093069/job/31519563616

JakeWharton commented 3 weeks ago

Again https://github.com/square/okio/actions/runs/11391218746/job/31694519307