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

[tests] Stop Tor on exit #11503

Merged

Conversation

kiminuo
Copy link
Collaborator

@kiminuo kiminuo commented Sep 18, 2023

This is a very simple change that makes using Tor tests a bit nicer.

Currently on master, you start Tor tests and then a Tor process stays alive. That would be OK but then it prevents you from running your Wasabi Wallet because there is an existing instance of Tor but Wasabi Wallet cannot use that Tor instance because in tests and in production Tor is started slightly differently.

So this is a trivial way to make it a bit better. Another step would be to start Tor totally separately with different ports and different folders for tests. I can do it in the future.

Converted to draft for now. I'm testing it.

@kiminuo kiminuo force-pushed the feature/2023-09-18-tests-stop-tor-on-exit branch from ce37b5d to 880241a Compare September 18, 2023 07:08
@kiminuo kiminuo marked this pull request as ready for review September 18, 2023 07:12
@kiminuo kiminuo marked this pull request as draft September 18, 2023 07:20
Copy link
Collaborator

@adamPetho adamPetho left a comment

Choose a reason for hiding this comment

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

tACK

On master:

  • Run IntegrationTests/TorTests
  • After the tests, tor.exe is still a running process.
  • Wasabi crashes.

PR:

  • Run IntegrationTests/TorTests
  • tor.exe is terminated after the tests.
  • Wasabi can be started.

@kiminuo kiminuo marked this pull request as ready for review September 18, 2023 10:40
@kiminuo kiminuo merged commit fe2bcd1 into WalletWasabi:master Sep 18, 2023
7 checks passed
@kiminuo kiminuo deleted the feature/2023-09-18-tests-stop-tor-on-exit branch September 18, 2023 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants