Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change LocalNode stop() function to return a Promise #465

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

0xmaayan
Copy link
Collaborator

Description

Change the stop() function on LocalNode to return a Promise so we can wait for the processes to be killed

Test Plan

Related Links

@0xmaayan 0xmaayan requested a review from a team as a code owner July 16, 2024 00:02
@0xmaayan 0xmaayan requested a review from vgao1996 July 16, 2024 00:02
@@ -40,7 +48,7 @@ export class LocalNode {
*/
start() {
const cliCommand = "npx";
const cliArgs = ["aptos", "node", "run-local-testnet", "--force-restart", "--assume-yes", "--with-indexer-api"];
const cliArgs = ["aptos", "node", "run-localnet", "--force-restart", "--assume-yes", "--with-indexer-api"];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@0xmaayan 0xmaayan merged commit e136049 into main Jul 16, 2024
8 checks passed
@0xmaayan 0xmaayan deleted the local_node_stop_async branch July 16, 2024 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants