Skip to content

Commit 058539c

Browse files
committed
[TaskCenter][5/n] Introduces restate_core::test macro
Introduces a new macro that creates a default TaskCenter in tests. This should replace usage of `tokio::test` (the code is mostly based on it) and it provides access to `TaskCenter::current()` within the test code. This also introduces a transitional type `TestCoreEnv2`, a clone of `TestCoreEnv` but without TaskCenter. After migration, this will be renamed to `TestCoreEnv` again.
1 parent d0f01b7 commit 058539c

File tree

12 files changed

+1469
-424
lines changed

12 files changed

+1469
-424
lines changed

Cargo.lock

+10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
members = [
33
"cli",
44
"crates/*",
5+
"crates/core/derive",
56
"crates/codederror/derive",
67
"server",
78
"benchmarks",
@@ -14,6 +15,7 @@ members = [
1415
default-members = [
1516
"cli",
1617
"crates/*",
18+
"crates/core/derive",
1719
"crates/codederror/derive",
1820
"server",
1921
"tools/restatectl",
@@ -38,6 +40,7 @@ restate-base64-util = { path = "crates/base64-util" }
3840
restate-bifrost = { path = "crates/bifrost" }
3941
restate-cli-util = { path = "crates/cli-util" }
4042
restate-core = { path = "crates/core" }
43+
restate-core-derive = { path = "crates/core/derive" }
4144
restate-errors = { path = "crates/errors" }
4245
restate-fs-util = { path = "crates/fs-util" }
4346
restate-futures-util = { path = "crates/futures-util" }

0 commit comments

Comments
 (0)