Skip to content

Commit

Permalink
test: replace block_on with tokio::tests
Browse files Browse the repository at this point in the history
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:
#7
  • Loading branch information
sectore authored and DanConwayDev committed Feb 2, 2024
1 parent ccdbc33 commit ab1450c
Show file tree
Hide file tree
Showing 8 changed files with 426 additions and 377 deletions.
2 changes: 1 addition & 1 deletion nostr_git_remote_helper/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Loading

0 comments on commit ab1450c

Please sign in to comment.