You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by wy...@apache.org on 2026/10/23 00:40:09 UTC
(maka) 13/18: test(host): use public contracts in retirement fixture
This is an automated email from the ASF dual-hosted git repository.
M4n5ter pushed a commit to branch rust-preview
in repository https://gitbox.apache.org/repos/asf/maka.git
commit 634b22cc77d950c01ffcb63584060fced038ae38
Author: M4n5ter <m4...@gmail.com>
AuthorDate: Fri Oct 23 08:03:38 2026 +0800
test(host): use public contracts in retirement fixture
---
.../tests/application_services/host_logs.rs | 25 ++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/platform/host-js/tests/application_services/host_logs.rs b/platform/host-js/tests/application_services/host_logs.rs
index 7f96862b11..aa7f2b704f 100644
--- a/platform/host-js/tests/application_services/host_logs.rs
+++ b/platform/host-js/tests/application_services/host_logs.rs
@@ -284,8 +284,29 @@ async fn failed_startup_retirement_waits_for_cleanup_without_blocking_session_ad
let owner = Arc::new(RootOwner::create(&root, &namespaces).unwrap());
let root_id = owner.root_id().to_owned();
let store = Arc::new(EventLog::for_root(owner).await.unwrap());
- let provider = native_package();
- let consumer = consumer();
+ let mut provider = entry(
+ true,
+ Implementation::Native {
+ implementation: "native.echo".into(),
+ },
+ MethodMode::Query,
+ );
+ provider.exports.get_mut("echo").unwrap().contract.transport = Transport::Remote;
+ let provider = package("native", provider, None);
+ let mut consumer = entry(
+ false,
+ Implementation::JavaScript {
+ module: "host.mjs".into(),
+ realm: Realm::Shared,
+ },
+ MethodMode::Query,
+ );
+ consumer.imports.get_mut("echo").unwrap().contract.transport = Transport::Remote;
+ let consumer = package(
+ "consumer",
+ consumer,
+ Some("export function activate() { return {}; }".into()),
+ );
let source = store
.commit_application(
Uuid::new_v4(),
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org