-
Notifications
You must be signed in to change notification settings - Fork 150
feat(rivetkit): add clearAlarm #4004
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 01-21-feat_rivetkit_c.keepawake
Are you sure you want to change the base?
feat(rivetkit): add clearAlarm #4004
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
PR Review: feat(rivetkit): add clearAlarmSummaryThis PR adds a Code Quality ✅Strengths
Implementation Details
Issues & Concerns🔴 Critical: Missing Test CoverageThe PR adds significant new functionality but includes no tests. This is concerning because:
Recommendation: Add test cases to test("clearAlarm cancels scheduled alarm", async (c) => {
const scheduled = client.scheduled.getOrCreate();
await scheduled.scheduleTaskAfter(250);
// Clear the alarm before it fires
await scheduled.clearAlarm();
await waitFor(driverTestConfig, 500);
// Verify task did NOT run
const scheduledCount = await scheduled.getScheduledCount();
expect(scheduledCount).toBe(0);
});
test("clearAlarm does not remove scheduled events", async (c) => {
// Verify events remain in queue after clearing alarm
});
|
bc1cebd to
1605e9c
Compare
f249097 to
036ed07
Compare

No description provided.