Skip to content

Commit f661574

Browse files
authored
Fix e2e test http actortest (#554)
* modify entities length to 11 Signed-off-by: MregXN <[email protected]> * modify actors have registed Signed-off-by: MregXN <[email protected]> --------- Signed-off-by: MregXN <[email protected]>
1 parent d33c5a4 commit f661574

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Diff for: test/e2e/http/actors.test.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ describe("http/actors", () => {
113113

114114
const config = JSON.parse(await res.text());
115115

116-
expect(config.entities.length).toBe(9);
116+
expect(config.entities.length).toBe(11);
117117
expect(config.actorIdleTimeout).toBe("1h");
118118
expect(config.actorScanInterval).toBe("30s");
119119
expect(config.drainOngoingCallTimeout).toBe("1m");
@@ -179,15 +179,19 @@ describe("http/actors", () => {
179179
it("should register actors correctly", async () => {
180180
const actors = await server.actor.getRegisteredActors();
181181

182-
expect(actors.length).toEqual(9);
182+
expect(actors.length).toEqual(11);
183183

184184
expect(actors).toContain(DemoActorCounterImpl.name);
185185
expect(actors).toContain(DemoActorSayImpl.name);
186186
expect(actors).toContain(DemoActorReminderImpl.name);
187+
expect(actors).toContain(DemoActorReminder2Impl.name);
188+
expect(actors).toContain(DemoActorReminderOnceImpl.name);
187189
expect(actors).toContain(DemoActorTimerImpl.name);
190+
expect(actors).toContain(DemoActorTimerOnceImpl.name);
188191
expect(actors).toContain(DemoActorActivateImpl.name);
189192
expect(actors).toContain(DemoActorTimerTtlImpl.name);
190193
expect(actors).toContain(DemoActorReminderTtlImpl.name);
194+
expect(actors).toContain(DemoActorDeleteStateImpl.name);
191195
});
192196

193197
it("should be able to invoke an actor through a text message", async () => {

0 commit comments

Comments
 (0)