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

feat: add wallet ffi shutdown tests #6007

Merged

Conversation

hansieodendaal
Copy link
Contributor

@hansieodendaal hansieodendaal commented Dec 4, 2023

Description

  • Added wallet FFI shutdown tests to prove that all services have been terminated when the FFI wallet_destroy command has been run.
  • Added additional safeguards in the FFI wallet_destroy method to ensure the wallet has shut down.

Motivation and Context

See #5984

How Has This Been Tested?

Added pub fn test_wallet_shutdown() in the wallet FFI library.

What process can a PR reviewer use to test or verify this change?

  • Review test code
  • Run the test

Breaking Changes

  • None
  • Requires data directory on base node to be deleted
  • Requires hard fork
  • Other - Please specify

Copy link

github-actions bot commented Dec 4, 2023

Test Results (CI)

1 261 tests   1 261 ✔️  11m 10s ⏱️
     39 suites         0 💤
       1 files           0

Results for commit c3c5575.

♻️ This comment has been updated with latest results.

@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Dec 4, 2023
Copy link

github-actions bot commented Dec 4, 2023

Test Results (Integration tests)

  2 files  +  2  12 suites  +12   1h 25m 26s ⏱️ + 1h 25m 26s
32 tests +32  27 ✔️ +27  0 💤 ±0    5 +  5 
42 runs  +42  27 ✔️ +27  0 💤 ±0  15 +15 

For more details on these failures, see this check.

Results for commit c3c5575. ± Comparison against base commit 0bc62b4.

♻️ This comment has been updated with latest results.

@hansieodendaal hansieodendaal force-pushed the ho_wallet_ffi_shutdown branch 4 times, most recently from 04199b1 to a6015ca Compare December 7, 2023 07:34
- Added wallet FFI shutdown tests to prove that all services have been
  terminted when the FFI `wallet_destroy` command has been run.
- Added additional safeguards in the FFI `wallet_destroy` method to ensure the
  wallet has shut down.
@hansieodendaal hansieodendaal changed the title [wip] feat: add wallet ffi shutdown tests feat: add wallet ffi shutdown tests Dec 7, 2023
Copy link
Member

@sdbondi sdbondi left a comment

Choose a reason for hiding this comment

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

👍 So it's definitely shut down then :)

@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Dec 7, 2023
@SWvheerden SWvheerden merged commit 3129ce8 into tari-project:development Dec 7, 2023
13 of 16 checks passed
@hansieodendaal hansieodendaal deleted the ho_wallet_ffi_shutdown branch December 7, 2023 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants