Skip to content

Commit 19222bb

Browse files
committed
Enable two more e2e tests
This commit enables two additional e2e tests. - UserErrors - CancelInvocation
1 parent e544a2c commit 19222bb

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

test-services/exclusions.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,12 @@ exclusions:
22
"alwaysSuspending":
33
- "dev.restate.sdktesting.tests.AwaitTimeout"
44
- "dev.restate.sdktesting.tests.State"
5-
- "dev.restate.sdktesting.tests.UserErrors"
65
"default":
76
- "dev.restate.sdktesting.tests.AwaitTimeout"
8-
- "dev.restate.sdktesting.tests.CancelInvocation"
97
- "dev.restate.sdktesting.tests.KafkaIngress"
108
- "dev.restate.sdktesting.tests.State"
11-
- "dev.restate.sdktesting.tests.UserErrors"
129
"lazyState":
1310
- "dev.restate.sdktesting.tests.State"
1411
"singleThreadSinglePartition":
1512
- "dev.restate.sdktesting.tests.AwaitTimeout"
16-
- "dev.restate.sdktesting.tests.CancelInvocation"
17-
- "dev.restate.sdktesting.tests.KafkaIngress"
1813
- "dev.restate.sdktesting.tests.State"
19-
- "dev.restate.sdktesting.tests.UserErrors"

test-services/services/cancel_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ async def verify_test(ctx: ObjectContext) -> bool:
4141
return False
4242
return state
4343

44-
44+
4545
blocking_service = VirtualObject("CancelTestBlockingService")
4646

4747
@blocking_service.handler()
@@ -58,6 +58,6 @@ async def block(ctx: ObjectContext, op: BlockingOperation):
5858
name, uncompleteable = ctx.awakeable()
5959
await uncompleteable
6060

61-
@blocking_service.handler(name="isUnblocked")
62-
async def is_unblocked(ctx: ObjectContext):
61+
@blocking_service.handler(name="isUnlocked")
62+
async def is_unlocked(ctx: ObjectContext):
6363
return None

test-services/services/failing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def side_effect():
6060
async def terminally_failing_side_effect(ctx: ObjectContext):
6161

6262
def side_effect():
63-
raise TerminalError(message="Terminally failing side effect")
63+
raise TerminalError(message="failed side effect")
6464

6565
await ctx.run("sideEffect", side_effect)
6666
raise ValueError("Should not reach here")

0 commit comments

Comments
 (0)