Skip to content

Commit 1fe23de

Browse files
committed
test(desktop): clear presence before the doorbell stream opens in the E2E
1 parent 48b2051 commit 1fe23de

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/sim/scripts/test-desktop-inbox-e2e.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,9 +408,10 @@ async function run() {
408408
assert(registration.reconcileMs < PICKUP_GRACE_SECONDS * 1000)
409409
})
410410

411+
/** Starts absent, so only the stream open below can mark the device present. */
412+
await redis.del(`desktop:presence:${desktop.deviceId}`)
411413
const doorbell = openDoorbell(desktop)
412414
await check('counts the device online once it opens its doorbell stream', async () => {
413-
await redis.del(`desktop:presence:${desktop.deviceId}`)
414415
await doorbell.opened
415416
await waitFor(
416417
async () => (await redis.exists(`desktop:presence:${desktop.deviceId}`)) === 1,

0 commit comments

Comments
 (0)