Skip to content

Commit 5a152ec

Browse files
committed
chore(driver-test-suite): disable flakey scheduling test (#880)
1 parent 7a4e757 commit 5a152ec

File tree

1 file changed

+28
-27
lines changed

1 file changed

+28
-27
lines changed

packages/misc/driver-test-suite/src/tests/actor-driver.ts

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -99,33 +99,34 @@ export function runActorDriverTests(driverTestConfig: DriverTestConfig) {
9999
expect(lastRun).toBeGreaterThan(0);
100100
});
101101

102-
test("schedules multiple tasks correctly", async () => {
103-
const { client } = await setupDriverTest<ScheduledApp>(
104-
driverTestConfig,
105-
resolve(__dirname, "../fixtures/apps/scheduled.ts"),
106-
);
107-
108-
// Create a new scheduled actor with unique ID
109-
const scheduledActor = await client.scheduled.get();
110-
111-
// Schedule multiple tasks with different delays
112-
await scheduledActor.scheduleTask(50);
113-
await scheduledActor.scheduleTask(150);
114-
115-
// Advance time by 75ms - should execute only the first task
116-
await waitFor(driverTestConfig, 75);
117-
118-
// Verify first task ran
119-
let count = await scheduledActor.getScheduledCount();
120-
expect(count).toBe(1);
121-
122-
// Advance time by another 100ms to execute the second task
123-
await waitFor(driverTestConfig, 100);
124-
125-
// Verify both tasks ran
126-
count = await scheduledActor.getScheduledCount();
127-
expect(count).toBe(2);
128-
});
102+
// TODO: https://github.com/rivet-gg/actor-core/issues/877
103+
//test("schedules multiple tasks correctly", async () => {
104+
// const { client } = await setupDriverTest<ScheduledApp>(
105+
// driverTestConfig,
106+
// resolve(__dirname, "../fixtures/apps/scheduled.ts"),
107+
// );
108+
//
109+
// // Create a new scheduled actor with unique ID
110+
// const scheduledActor = await client.scheduled.get();
111+
//
112+
// // Schedule multiple tasks with different delays
113+
// await scheduledActor.scheduleTask(50);
114+
// await scheduledActor.scheduleTask(150);
115+
//
116+
// // Advance time by 75ms - should execute only the first task
117+
// await waitFor(driverTestConfig, 75);
118+
//
119+
// // Verify first task ran
120+
// let count = await scheduledActor.getScheduledCount();
121+
// expect(count).toBe(1);
122+
//
123+
// // Advance time by another 100ms to execute the second task
124+
// await waitFor(driverTestConfig, 100);
125+
//
126+
// // Verify both tasks ran
127+
// count = await scheduledActor.getScheduledCount();
128+
// expect(count).toBe(2);
129+
//});
129130
});
130131
});
131132
}

0 commit comments

Comments
 (0)