Skip to content

Commit

Permalink
more inline naming fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
noise64 committed Dec 23, 2024
1 parent c9d3f2a commit baaa53e
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 18 deletions.
30 changes: 25 additions & 5 deletions golem-worker-executor-base/tests/ts_rpc1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,18 @@ async fn counter_resource_test_1(
.await;

let result1 = executor
.invoke_and_await(&caller_worker_id, "test1", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test1}",
vec![],
)
.await;
let result2 = executor
.invoke_and_await(&caller_worker_id, "test1", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test1}",
vec![],
)
.await;

drop(executor);
Expand Down Expand Up @@ -85,14 +93,22 @@ async fn counter_resource_test_1_with_restart(
.await;

let result1 = executor
.invoke_and_await(&caller_worker_id, "test1", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test1}",
vec![],
)
.await;

drop(executor);
let executor = common::start(deps, &context).await.unwrap();

let result2 = executor
.invoke_and_await(&caller_worker_id, "test1", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test1}",
vec![],
)
.await;

drop(executor);
Expand Down Expand Up @@ -130,7 +146,11 @@ async fn context_inheritance(
.await;

let result = executor
.invoke_and_await(&caller_worker_id, "test3", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test3}",
vec![],
)
.await;

drop(executor);
Expand Down
30 changes: 25 additions & 5 deletions golem-worker-executor-base/tests/ts_rpc1_stubless.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,18 @@ async fn counter_resource_test_1(
.await;

let result1 = executor
.invoke_and_await(&caller_worker_id, "test1", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test1}",
vec![],
)
.await;
let result2 = executor
.invoke_and_await(&caller_worker_id, "test1", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test1}",
vec![],
)
.await;

drop(executor);
Expand Down Expand Up @@ -87,14 +95,22 @@ async fn counter_resource_test_1_with_restart(
.await;

let result1 = executor
.invoke_and_await(&caller_worker_id, "test1", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test1}",
vec![],
)
.await;

drop(executor);
let executor = common::start(deps, &context).await.unwrap();

let result2 = executor
.invoke_and_await(&caller_worker_id, "test1", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test1}",
vec![],
)
.await;

drop(executor);
Expand Down Expand Up @@ -133,7 +149,11 @@ async fn context_inheritance(
.await;

let result = executor
.invoke_and_await(&caller_worker_id, "test3", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test3}",
vec![],
)
.await;

drop(executor);
Expand Down
24 changes: 20 additions & 4 deletions golem-worker-executor-base/tests/ts_rpc2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,18 @@ async fn counter_resource_test_2(
.await;

let result1 = executor
.invoke_and_await(&caller_worker_id, "test2", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test2}",
vec![],
)
.await;
let result2 = executor
.invoke_and_await(&caller_worker_id, "test2", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test2}",
vec![],
)
.await;

drop(executor);
Expand Down Expand Up @@ -85,14 +93,22 @@ async fn counter_resource_test_2_with_restart(
.await;

let result1 = executor
.invoke_and_await(&caller_worker_id, "test2", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test2}",
vec![],
)
.await;

drop(executor);
let executor = common::start(deps, &context).await.unwrap();

let result2 = executor
.invoke_and_await(&caller_worker_id, "test2", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test2}",
vec![],
)
.await;

drop(executor);
Expand Down
24 changes: 20 additions & 4 deletions golem-worker-executor-base/tests/ts_rpc2_stubless.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,18 @@ async fn counter_resource_test_2(
.await;

let result1 = executor
.invoke_and_await(&caller_worker_id, "test2", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test2}",
vec![],
)
.await;
let result2 = executor
.invoke_and_await(&caller_worker_id, "test2", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test2}",
vec![],
)
.await;

drop(executor);
Expand Down Expand Up @@ -87,14 +95,22 @@ async fn counter_resource_test_2_with_restart(
.await;

let result1 = executor
.invoke_and_await(&caller_worker_id, "test2", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test2}",
vec![],
)
.await;

drop(executor);
let executor = common::start(deps, &context).await.unwrap();

let result2 = executor
.invoke_and_await(&caller_worker_id, "test2", vec![])
.invoke_and_await(
&caller_worker_id,
"rpc:caller-exports/caller-inline-functions.{test2}",
vec![],
)
.await;

drop(executor);
Expand Down

0 comments on commit baaa53e

Please sign in to comment.