Release: use independent component repositories
This commit is contained in:
1 parent
2fba7d2dea
commit
8f7ae36e0f
5 files changed
+47
-7
No files matched your search
@@ -250,6 +250,25 @@ int main()
|
||||
};
|
||||
|
||||
TemporaryTree tree;
|
||||
{
|
||||
auto ownedService =
|
||||
std::make_shared<Echoion::Standalone::UpdateService>(
|
||||
Echoion::Standalone::UpdateService::Options{},
|
||||
Echoion::Standalone::UpdateService::Hooks{});
|
||||
std::weak_ptr<Echoion::Standalone::UpdateService> observedService =
|
||||
ownedService;
|
||||
auto handler =
|
||||
Echoion::Standalone::bindUpdateService(ownedService);
|
||||
ownedService.reset();
|
||||
check(!observedService.expired(),
|
||||
"host control handler did not retain UpdateService");
|
||||
check(handler("updates.getStatus", "{}").has_value(),
|
||||
"retained UpdateService handler could not serve status");
|
||||
handler = {};
|
||||
check(observedService.expired(),
|
||||
"cleared host control handler retained UpdateService");
|
||||
}
|
||||
|
||||
const auto startupState = tree.path() / "startup-state";
|
||||
const auto bundledStartupCore =
|
||||
tree.path() / "startup-runtime" / "lib" / "Echoion.ts";
|
||||
|
||||
Reference in new issue
Block a user