Skip to content

Commit c4243fe

Browse files
Fix cancel test (#47)
1 parent c2b9046 commit c4243fe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test-services/src/cancel_test.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl CancelTestRunner for CancelTestRunnerImpl {
3131
context: ObjectContext<'_>,
3232
op: Json<BlockingOperation>,
3333
) -> HandlerResult<()> {
34-
let this = context.object_client::<CancelTestBlockingServiceClient>("");
34+
let this = context.object_client::<CancelTestBlockingServiceClient>(context.key());
3535

3636
match this.block(op).call().await {
3737
Ok(_) => Err(anyhow!("Block succeeded, this is unexpected").into()),
@@ -65,9 +65,9 @@ impl CancelTestBlockingService for CancelTestBlockingServiceImpl {
6565
context: ObjectContext<'_>,
6666
op: Json<BlockingOperation>,
6767
) -> HandlerResult<()> {
68-
let this = context.object_client::<CancelTestBlockingServiceClient>("");
68+
let this = context.object_client::<CancelTestBlockingServiceClient>(context.key());
6969
let awakeable_holder_client =
70-
context.object_client::<awakeable_holder::AwakeableHolderClient>("cancel");
70+
context.object_client::<awakeable_holder::AwakeableHolderClient>(context.key());
7171

7272
let (awk_id, awakeable) = context.awakeable::<String>();
7373
awakeable_holder_client.hold(awk_id).call().await?;

0 commit comments

Comments
 (0)