The Wayback Machine - https://web.archive.org/web/20210802123500/https://github.com/topics/protocols
Skip to content
#

protocols

Here are 227 public repositories matching this topic...

ockam
jared-s
jared-s commented Jul 21, 2021

Writing tests for nodes and workers is complex due to their async nature. In tests we can't use the #[ockam::node] attribute, and instead use the method of

let (ctx, executor) = ockam::start_node()
executor.execute(async move { ...

This method has problems: if a test assertion fails inside of this async block, the test will not fail. Instead, the Node remains alive. I believe

Improve this page

Add a description, image, and links to the protocols topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the protocols topic, visit your repo's landing page and select "manage topics."

Learn more