Skip to content

Commit c3435fd

Browse files
sacOO7claude
andcommitted
fix(uts): route objects integration clients to the nonprod sandbox
The Realtime client option blocks in objects_lifecycle_test.md (10) and objects_sync_test.md (5) set no host, so the SDK falls back to the production endpoint (realtime.ably.io, REC1a) — meaning the clients never reach the nonprod sandbox the "Sandbox Setup" provisions the app on. Every other UTS integration spec (realtime + rest) configures clients with endpoint: "nonprod:sandbox"; add it here to match so the tests actually exercise the sandbox. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 9883347 commit c3435fd

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

uts/objects/integration/objects_lifecycle_test.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ propagates via the server and a second client sees the updated value.
5454
```pseudo
5555
channel_name = "objects-lifecycle-" + random_id()
5656
57-
client_a = Realtime(options: { key: api_key, useBinaryProtocol: PROTOCOL == "msgpack" })
58-
client_b = Realtime(options: { key: api_key, useBinaryProtocol: PROTOCOL == "msgpack" })
57+
client_a = Realtime(options: { key: api_key, endpoint: "nonprod:sandbox", useBinaryProtocol: PROTOCOL == "msgpack" })
58+
client_b = Realtime(options: { key: api_key, endpoint: "nonprod:sandbox", useBinaryProtocol: PROTOCOL == "msgpack" })
5959
6060
client_a.connect()
6161
AWAIT_STATE client_a.connection.state == CONNECTED
@@ -105,8 +105,8 @@ on the server. Second client syncs and reads the counter value.
105105
```pseudo
106106
channel_name = "objects-counter-create-" + random_id()
107107
108-
client_a = Realtime(options: { key: api_key, useBinaryProtocol: PROTOCOL == "msgpack" })
109-
client_b = Realtime(options: { key: api_key, useBinaryProtocol: PROTOCOL == "msgpack" })
108+
client_a = Realtime(options: { key: api_key, endpoint: "nonprod:sandbox", useBinaryProtocol: PROTOCOL == "msgpack" })
109+
client_b = Realtime(options: { key: api_key, endpoint: "nonprod:sandbox", useBinaryProtocol: PROTOCOL == "msgpack" })
110110
111111
client_a.connect()
112112
AWAIT_STATE client_a.connection.state == CONNECTED
@@ -152,8 +152,8 @@ The server applies the increment and propagates the updated value.
152152
```pseudo
153153
channel_name = "objects-increment-" + random_id()
154154
155-
client_a = Realtime(options: { key: api_key, useBinaryProtocol: PROTOCOL == "msgpack" })
156-
client_b = Realtime(options: { key: api_key, useBinaryProtocol: PROTOCOL == "msgpack" })
155+
client_a = Realtime(options: { key: api_key, endpoint: "nonprod:sandbox", useBinaryProtocol: PROTOCOL == "msgpack" })
156+
client_b = Realtime(options: { key: api_key, endpoint: "nonprod:sandbox", useBinaryProtocol: PROTOCOL == "msgpack" })
157157
158158
client_a.connect()
159159
AWAIT_STATE client_a.connection.state == CONNECTED
@@ -204,8 +204,8 @@ Second client can navigate into the nested map.
204204
```pseudo
205205
channel_name = "objects-map-create-" + random_id()
206206
207-
client_a = Realtime(options: { key: api_key, useBinaryProtocol: PROTOCOL == "msgpack" })
208-
client_b = Realtime(options: { key: api_key, useBinaryProtocol: PROTOCOL == "msgpack" })
207+
client_a = Realtime(options: { key: api_key, endpoint: "nonprod:sandbox", useBinaryProtocol: PROTOCOL == "msgpack" })
208+
client_b = Realtime(options: { key: api_key, endpoint: "nonprod:sandbox", useBinaryProtocol: PROTOCOL == "msgpack" })
209209
210210
client_a.connect()
211211
AWAIT_STATE client_a.connection.state == CONNECTED
@@ -254,7 +254,7 @@ after the sync sequence completes.
254254
```pseudo
255255
channel_name = "objects-get-root-" + random_id()
256256
257-
client = Realtime(options: { key: api_key, useBinaryProtocol: PROTOCOL == "msgpack" })
257+
client = Realtime(options: { key: api_key, endpoint: "nonprod:sandbox", useBinaryProtocol: PROTOCOL == "msgpack" })
258258
client.connect()
259259
AWAIT_STATE client.connection.state == CONNECTED
260260
@@ -302,7 +302,7 @@ provision_objects_via_rest(api_key, channel_name, [
302302

303303
### Test Steps
304304
```pseudo
305-
client = Realtime(options: { key: api_key, useBinaryProtocol: PROTOCOL == "msgpack" })
305+
client = Realtime(options: { key: api_key, endpoint: "nonprod:sandbox", useBinaryProtocol: PROTOCOL == "msgpack" })
306306
client.connect()
307307
AWAIT_STATE client.connection.state == CONNECTED
308308

uts/objects/integration/objects_sync_test.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ processes OBJECT_SYNC messages, then transitions to SYNCED. get() waits for SYNC
5454
```pseudo
5555
channel_name = "objects-sync-" + random_id()
5656
57-
client = Realtime(options: { key: api_key, useBinaryProtocol: PROTOCOL == "msgpack" })
57+
client = Realtime(options: { key: api_key, endpoint: "nonprod:sandbox", useBinaryProtocol: PROTOCOL == "msgpack" })
5858
client.connect()
5959
AWAIT_STATE client.connection.state == CONNECTED
6060
@@ -89,8 +89,8 @@ client.close()
8989
```pseudo
9090
channel_name = "objects-two-sync-" + random_id()
9191
92-
client_a = Realtime(options: { key: api_key, useBinaryProtocol: PROTOCOL == "msgpack" })
93-
client_b = Realtime(options: { key: api_key, useBinaryProtocol: PROTOCOL == "msgpack" })
92+
client_a = Realtime(options: { key: api_key, endpoint: "nonprod:sandbox", useBinaryProtocol: PROTOCOL == "msgpack" })
93+
client_b = Realtime(options: { key: api_key, endpoint: "nonprod:sandbox", useBinaryProtocol: PROTOCOL == "msgpack" })
9494
9595
client_a.connect()
9696
AWAIT_STATE client_a.connection.state == CONNECTED
@@ -137,7 +137,7 @@ is re-populated from the server.
137137
```pseudo
138138
channel_name = "objects-reattach-" + random_id()
139139
140-
client = Realtime(options: { key: api_key, useBinaryProtocol: PROTOCOL == "msgpack" })
140+
client = Realtime(options: { key: api_key, endpoint: "nonprod:sandbox", useBinaryProtocol: PROTOCOL == "msgpack" })
141141
client.connect()
142142
AWAIT_STATE client.connection.state == CONNECTED
143143
@@ -183,7 +183,7 @@ sends HAS_OBJECTS, sync completes, root is an empty LiveMap.
183183
```pseudo
184184
channel_name = "objects-subscribe-only-" + random_id()
185185
186-
client = Realtime(options: { key: api_key, useBinaryProtocol: PROTOCOL == "msgpack" })
186+
client = Realtime(options: { key: api_key, endpoint: "nonprod:sandbox", useBinaryProtocol: PROTOCOL == "msgpack" })
187187
client.connect()
188188
AWAIT_STATE client.connection.state == CONNECTED
189189

0 commit comments

Comments
 (0)