@@ -99,33 +99,34 @@ export function runActorDriverTests(driverTestConfig: DriverTestConfig) {
99
99
expect ( lastRun ) . toBeGreaterThan ( 0 ) ;
100
100
} ) ;
101
101
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
+ //});
129
130
} ) ;
130
131
} ) ;
131
132
}
0 commit comments