You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Given: A DefaultRoomLifecycleManager, which has a contributor for which it has previously received an ATTACHED state change (so that we get through the CHA-RL4a2 check)
// @specPartial CHA-RL4a2 - TODO: I have changed the criteria for deciding whether an ATTACHED status change represents a discontinuity, to be based on whether there was a previous ATTACHED state change instead of whether the `attach()` call has completed; see https://github.com/ably/specification/issues/239 and change this to @spec once we’re aligned with spec again
// Then: The manager does not record a pending discontinuity event for this contributor, nor does it call `emitDiscontinuity` on the contributor; this shows us that the actions described in CHA-RL4a3 and CHA-RL4a4 haven’t been performed
// Given: A DefaultRoomLifecycleManager, with a room lifecycle operation in progress
1421
+
// Given: A DefaultRoomLifecycleManager, with a room lifecycle operation in progress, and with a contributor for which it has previously received an ATTACHED state change
1383
1422
letcontributor=createContributor()
1384
1423
letmanager=awaitcreateManager(
1385
1424
forTestingWhatHappensWhenCurrentlyIn:.attachingDueToAttachOperation(attachOperationID:UUID()), // case and ID arbitrary, just care that an operation is in progress
1386
1425
contributors:[contributor]
1387
1426
)
1388
1427
1389
-
// When: A contributor emits an UPDATE event with `resumed` flag set to false
1428
+
// This is to satisfy "for which it has previously received an ATTACHED state change"
// Given: A DefaultRoomLifecycleManager, with a room lifecycle operation in progressand with an existing pending discontinuity event for a given contributor
1463
+
// Given: A DefaultRoomLifecycleManager, with a room lifecycle operation in progress, with a contributor for which it has previously received an ATTACHED state change, and with an existing pending discontinuity event for this contributor
// Given: A DefaultRoomLifecycleManager, with no room lifecycle operation in progress
1509
+
// Given: A DefaultRoomLifecycleManager, with no room lifecycle operation in progress, and with a contributor for which it has previously received an ATTACHED state change
1443
1510
letcontributor=createContributor()
1444
1511
letmanager=awaitcreateManager(
1445
1512
forTestingWhatHappensWhenCurrentlyIn:.initialized, // case arbitrary, just care that no operation is in progress
1446
1513
contributors:[contributor]
1447
1514
)
1448
1515
1449
-
// When: A contributor emits an UPDATE event with `resumed` flag set to false
1516
+
// This is to satisfy "for which it has previously received an ATTACHED state change"
0 commit comments