Gate Android polling behind realtime health

This commit is contained in:
kris
2026-04-10 14:07:17 +08:00
parent b1a0516717
commit 7593cc9cea
5 changed files with 137 additions and 5 deletions

View File

@@ -62,7 +62,7 @@ test("android realtime client always clears the active connection after stream s
assert.match(
source,
/try\s*\{[\s\S]{0,1200}int statusCode = connection\.getResponseCode\(\);[\s\S]{0,220}throw new IOException\("REALTIME_STREAM_HTTP_" \+ statusCode\);[\s\S]{0,2000}finally\s*\{\s*activeConnection = null;\s*connection\.disconnect\(\);\s*\}/,
/try\s*\{[\s\S]{0,1200}int statusCode = connection\.getResponseCode\(\);[\s\S]{0,220}throw new IOException\("REALTIME_STREAM_HTTP_" \+ statusCode\);[\s\S]{0,2000}finally\s*\{[\s\S]{0,160}activeConnection = null;\s*connection\.disconnect\(\);\s*\}/,
"expected non-2xx SSE setup failures to still flow through the connection cleanup finally block",
);
});