From 5eb83bc73ff7e9d7edd4f52c4a949ca1a2381a64 Mon Sep 17 00:00:00 2001 From: Simon Woolf Date: Tue, 13 Oct 2026 15:39:08 +0100 Subject: [PATCH] test: fix swapped code/statusCode assertions in channels_get reattach test #1248 corrected the ErrorInfo argument order; the test had encoded the old swapped values. Co-Authored-By: Claude Opus 5.5 --- .../java/io/ably/lib/test/realtime/RealtimeChannelTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/test/java/io/ably/lib/test/realtime/RealtimeChannelTest.java b/lib/src/test/java/io/ably/lib/test/realtime/RealtimeChannelTest.java index 8fa2a3bbc..e484b0078 100644 --- a/lib/src/test/java/io/ably/lib/test/realtime/RealtimeChannelTest.java +++ b/lib/src/test/java/io/ably/lib/test/realtime/RealtimeChannelTest.java @@ -248,8 +248,8 @@ public void channels_get_should_throw_when_would_cause_reattach() { AblyException exception = assertThrows(AblyException.class, () -> finalAbly.channels.get(channelName, options)); - assertEquals("Verify error code", 400, exception.errorInfo.code); - assertEquals("Verify error status code", 40000, exception.errorInfo.statusCode); + assertEquals("Verify error code", 40000, exception.errorInfo.code); + assertEquals("Verify error status code", 400, exception.errorInfo.statusCode); assertTrue("Verify error message", exception.errorInfo.message.contains("use Channel.setOptions()")); } catch (AblyException e) {