From ab1450c655f7fdfc214e1556d16fc754ca684613 Mon Sep 17 00:00:00 2001 From: jk Date: Wed, 31 Jan 2024 15:13:52 +0100 Subject: test: replace block_on with tokio::tests This is intended to improve the reliabilty of the tests. there have been particular issues with random tests never ending when run in the nix configuration see discussion here https://github.com/DanConwayDev/ngit-cli/issues/ 6#issuecomment-1918971239 and: https://github.com/DanConwayDev/ngit-cli/pull/7 --- nostr_git_remote_helper/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nostr_git_remote_helper/src') diff --git a/nostr_git_remote_helper/src/main.rs b/nostr_git_remote_helper/src/main.rs index 898f069..849396c 100644 --- a/nostr_git_remote_helper/src/main.rs +++ b/nostr_git_remote_helper/src/main.rs @@ -33,7 +33,7 @@ async fn main() -> Result<()> { match &cli.command { Commands::Capabilities() => sub_commands::capabilities::launch(), Commands::Placeholder(args) => { - futures::executor::block_on(sub_commands::placeholder::launch(&cli, args)) + sub_commands::placeholder::launch(&cli, args).await } } } -- cgit v1.2.3