ably / ably-java

Java, Android, Clojure and Scala client library SDK for Ably realtime messaging service
https://ably.com/download
Apache License 2.0
85 stars 39 forks source link

Flakey Realtime test `channels_are_reattached_after_reconnecting_when_statettl_plus_idleinterval_has_passed` in `ConnectionManagerTest` #897

Open QuintinWillison opened 1 year ago

QuintinWillison commented 1 year ago

Seen here at https://github.com/ably/ably-java/commit/3d252b6f7f0a901c00874463434baba2c49211bc:

-> Test channels_are_reattached_after_reconnecting_when_statettl_plus_idleinterval_has_passed[binary_protocol](io.ably.lib.test.realtime.ConnectionManagerTest)

io.ably.lib.test.realtime.RealtimeSuite > io.ably.lib.test.realtime.ConnectionManagerTest.channels_are_reattached_after_reconnecting_when_statettl_plus_idleinterval_has_passed[binary_protocol] FAILED
    java.lang.AssertionError: Suspended channel histories do not match expected:<[attaching, attaching, attached]> but was:<[attaching, attached]>
        at org.junit.Assert.fail(Assert.java:88)
        at org.junit.Assert.failNotEquals(Assert.java:834)
        at org.junit.Assert.assertEquals(Assert.java:118)
        at io.ably.lib.test.realtime.ConnectionManagerTest.channels_are_reattached_after_reconnecting_when_statettl_plus_idleinterval_has_passed(ConnectionManagerTest.java:731)

With more detail from the build reports:

java.lang.AssertionError: Suspended channel histories do not match expected:<[attaching, attaching, attached]> but was:<[attaching, attached]>
    at org.junit.Assert.fail(Assert.java:88)
    at org.junit.Assert.failNotEquals(Assert.java:834)
    at org.junit.Assert.assertEquals(Assert.java:118)
    at io.ably.lib.test.realtime.ConnectionManagerTest.channels_are_reattached_after_reconnecting_when_statettl_plus_idleinterval_has_passed(ConnectionManagerTest.java:731)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
    at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.lang.Thread.run(Thread.java:829)
sync-by-unito[bot] commented 1 year ago

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3231