feat: add guarded portal canary release
Memind CI / Test, build, and release guards (push) Failing after 2m14s
Memind CI / Test, build, and release guards (push) Failing after 2m14s
This commit is contained in:
@@ -507,3 +507,24 @@ test('keeps optional integrations disabled and contains timer failures', async (
|
||||
),
|
||||
);
|
||||
});
|
||||
|
||||
test('passive candidate runtime disables singleton reminder and subscription timers', async () => {
|
||||
const setup = createSetup({
|
||||
env: {
|
||||
H5_SCHEDULE_ENABLED: '1',
|
||||
H5_REMINDER_WORKER_ENABLED: '1',
|
||||
MEMIND_RUNTIME_ROLE: 'candidate',
|
||||
MEMIND_CANARY_PASSIVE_RUNTIME: '1',
|
||||
},
|
||||
});
|
||||
|
||||
const result = await bootstrapPortalIntegrationServices(setup.options);
|
||||
const captured = setup.getCaptured();
|
||||
|
||||
assert.equal(result.scheduleReminderWorker, null);
|
||||
assert.equal(result.subscriptionExpiryTimer, null);
|
||||
assert.equal(captured.reminderOptions, undefined);
|
||||
assert.equal(captured.timerCallback, undefined);
|
||||
assert.equal(setup.calls.some(([name]) => name === 'reminder-worker'), false);
|
||||
assert.equal(setup.calls.some(([name]) => name === 'set-interval'), false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user