Skip to content

feat: verify active base node peer connections and disconnect if stal… #1760

feat: verify active base node peer connections and disconnect if stal…

feat: verify active base node peer connections and disconnect if stal… #1760

GitHub Actions / JUnit Test Report failed Nov 4, 2024 in 0s

38 tests run, 36 passed, 0 skipped, 2 failed.

Annotations

Check failure on line 1 in feature:175:5

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

feature:175:5.Scenario: As a client I want to send a one-sided transaction: tests/features/WalletFFI.feature:175:5

Step panicked. Captured output: Wallet RECEIVER failed to have at least num 1 txs with status 2, current status is 1, scanned txs 0
Raw output
Scenario: As a client I want to send a one-sided transaction
     Given I have a seed node SEED
     When I have a base node BASE1 connected to all seed nodes
     When I have wallet SENDER connected to base node BASE1
     And I have a ffi wallet FFI_WALLET connected to base node BASE1
     When I have wallet RECEIVER connected to base node BASE1
     When I add contact with alias ALIAS1 and address of SENDER to ffi wallet FFI_WALLET
     When I add contact with alias ALIAS2 and address of RECEIVER to ffi wallet FFI_WALLET
     When I have mining node MINER connected to base node BASE1 and wallet SENDER
     When mining node MINER mines 10 blocks
     Then all nodes are at height 10
     Then I wait for wallet SENDER to have at least 129239250000 uT
     And I send 2400000 uT from wallet SENDER to wallet FFI_WALLET at fee 5
     And I send 2400000 uT from wallet SENDER to wallet FFI_WALLET at fee 5
     Then wallet SENDER has at least 2 transactions that are all TRANSACTION_STATUS_BROADCAST and not cancelled
     Then ffi wallet FFI_WALLET detects AT_LEAST 2 ffi transactions to be TRANSACTION_STATUS_BROADCAST
     When mining node MINER mines 10 blocks
     Then all nodes are at height 20
     Then ffi wallet FFI_WALLET detects AT_LEAST 2 ffi transactions to be TRANSACTION_STATUS_MINED
     Then I wait for ffi wallet FFI_WALLET to have at least 4000000 uT
     And I send 1000000 uT from ffi wallet FFI_WALLET to wallet RECEIVER at fee 5 via one-sided transactions
     Then ffi wallet FFI_WALLET detects AT_LEAST 3 ffi transactions to be TRANSACTION_STATUS_BROADCAST
     When mining node MINER mines 2 blocks
     Then all nodes are at height 22
     Then wallet RECEIVER has at least 1 transactions that are all TRANSACTION_STATUS_MINED_UNCONFIRMED and not cancelled
      Step failed:
      Defined: tests/features/WalletFFI.feature:205:9
      Matched: integration_tests/tests/steps/wallet_steps.rs:515:1
      Step panicked. Captured output: Wallet RECEIVER failed to have at least num 1 txs with status 2, current status is 1, scanned txs 0
      Client {
          base_nodes: {},
          blocks: {},
          miners: {
              "MINER": MinerProcess {
                  name: "MINER",
                  base_node_name: "BASE1",
                  wallet_name: "SENDER",
                  mine_until_height: 100000,
                  stealth: false,
              },
          },
          ffi_wallets: {
              "FFI_WALLET": WalletFFI {
                  name: "FFI_WALLET",
                  port: 18333,
                  base_dir: "/runner/_work/tari/tari/integration_tests/tests/temp/cucumber_12575/Wallet FFI/As a client I want to send a one-sided transaction/ffi_wallets/FFI_WALLET_port_18333",
                  wallet: Mutex {
                      data: Wallet {
                          ptr: 0x0000562e46fad560,
                          liveness_data: Mutex {
                              data: {
                                  "H4FMdvabffctrbAPgUZFzwhTuuBx2tSR842SNtqT3uEqfXHwA2S6gzVrFqnEinVgTknkaGgj4N2tbHtUy5JhiSeZhiA": ContactsLivenessData {
                                      ptr: 0x00007f7fec025d80,
                                  },
                                  "H4P9aU1YubNthkLTRX8LSfeKYtEuxSxYwJ7MDLsubG7fd1mVQYdZk2Y6pspgpr1uzGw7kmgoncfpqqVKRsGJt9HhPt1": ContactsLivenessData {
                                      ptr: 0x00007f7f5405e500,
                                  },
                              },
                              poisoned: false,
                              ..
                          },
                          balance: CachedBalance {
                              available: 2400000,
                              time_locked: 0,
                              pending_incoming: 0,
                              pending_outgoing: 2400000,
                          },
                      },
                      poisoned: false,
                      ..
                  },
              },
          },
          wallets: {},
          merge_mining_proxies: {},
          chat_clients: [],
          transactions: {},
          wallet_addresses: {},
          utxos: {},
          output_hash: None,
          pre_image: None,
          wallet_connected_to_base_node: {
              "SENDER": "BASE1",
              "RECEIVER": "BASE1",
          },
          seed_nodes: [
              "SEED",
          ],
          wallet_tx_ids: {
              "H4FMdvabffctrbAPgUZFzwhTuuBx2tSR842SNtqT3uEqfXHwA2S6gzVrFqnEinVgTknkaGgj4N2tbHtUy5JhiSeZhiA": [
                  5609626003206814160,
                  15215877582971543448,
              ],
              "H48FP34Rh8EgpeAbP7xETRKTdqeATFjbvwE5W2H3Ukz8nFJkRmXEiQPm7ufTZ3APCrzbWHhjxkBp3eJLWgHKvHvZS3A": [
                  5609626003206814160,
                  15215877582971543448,
              ],
          },
          errors: [],
          last_imported_tx_ids: [],
          last_merge_miner_response: Null,
      }

Check failure on line 1 in feature:175:5

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

feature:175:5.Scenario: As a client I want to send a one-sided transaction: tests/features/WalletFFI.feature:175:5

Step panicked. Captured output: Wallet RECEIVER failed to have at least num 1 txs with status 2, current status is 1, scanned txs 0
Raw output
Scenario: As a client I want to send a one-sided transaction | Retry attempt: 1/2
     Given I have a seed node SEED
     When I have a base node BASE1 connected to all seed nodes
     When I have wallet SENDER connected to base node BASE1
     And I have a ffi wallet FFI_WALLET connected to base node BASE1
     When I have wallet RECEIVER connected to base node BASE1
     When I add contact with alias ALIAS1 and address of SENDER to ffi wallet FFI_WALLET
     When I add contact with alias ALIAS2 and address of RECEIVER to ffi wallet FFI_WALLET
     When I have mining node MINER connected to base node BASE1 and wallet SENDER
     When mining node MINER mines 10 blocks
     Then all nodes are at height 10
     Then I wait for wallet SENDER to have at least 129239250000 uT
     And I send 2400000 uT from wallet SENDER to wallet FFI_WALLET at fee 5
     And I send 2400000 uT from wallet SENDER to wallet FFI_WALLET at fee 5
     Then wallet SENDER has at least 2 transactions that are all TRANSACTION_STATUS_BROADCAST and not cancelled
     Then ffi wallet FFI_WALLET detects AT_LEAST 2 ffi transactions to be TRANSACTION_STATUS_BROADCAST
     When mining node MINER mines 10 blocks
     Then all nodes are at height 20
     Then ffi wallet FFI_WALLET detects AT_LEAST 2 ffi transactions to be TRANSACTION_STATUS_MINED
     Then I wait for ffi wallet FFI_WALLET to have at least 4000000 uT
     And I send 1000000 uT from ffi wallet FFI_WALLET to wallet RECEIVER at fee 5 via one-sided transactions
     Then ffi wallet FFI_WALLET detects AT_LEAST 3 ffi transactions to be TRANSACTION_STATUS_BROADCAST
     When mining node MINER mines 2 blocks
     Then all nodes are at height 22
     Then wallet RECEIVER has at least 1 transactions that are all TRANSACTION_STATUS_MINED_UNCONFIRMED and not cancelled
      Step failed:
      Defined: tests/features/WalletFFI.feature:205:9
      Matched: integration_tests/tests/steps/wallet_steps.rs:515:1
      Step panicked. Captured output: Wallet RECEIVER failed to have at least num 1 txs with status 2, current status is 1, scanned txs 0
      Client {
          base_nodes: {},
          blocks: {},
          miners: {
              "MINER": MinerProcess {
                  name: "MINER",
                  base_node_name: "BASE1",
                  wallet_name: "SENDER",
                  mine_until_height: 100000,
                  stealth: false,
              },
          },
          ffi_wallets: {
              "FFI_WALLET": WalletFFI {
                  name: "FFI_WALLET",
                  port: 18245,
                  base_dir: "/runner/_work/tari/tari/integration_tests/tests/temp/cucumber_12575/Wallet FFI/As a client I want to send a one-sided transaction/ffi_wallets/FFI_WALLET_port_18245",
                  wallet: Mutex {
                      data: Wallet {
                          ptr: 0x0000562e464182d0,
                          liveness_data: Mutex {
                              data: {
                                  "H4PKrgfUmmpuVUUGQvfbJ1RgGbMzBVmqKhfoSF5XphXpQabDwhm4nhTsq9bmaHU3vpv6wXLe3CaiWukSqE95JxFzY1Q": ContactsLivenessData {
                                      ptr: 0x00007f7e70001720,
                                  },
                                  "H4FUaLszxK54u3zHBVeUxc383ga2rBTqky6NqXaCHDCLDg4wVa2d4A8EvNxh7tTL9YHx8H3ZVu8WXVE2vb9oXfScsTq": ContactsLivenessData {
                                      ptr: 0x00007f7c50041570,
                                  },
                              },
                              poisoned: false,
                              ..
                          },
                          balance: CachedBalance {
                              available: 2400000,
                              time_locked: 0,
                              pending_incoming: 0,
                              pending_outgoing: 2400000,
                          },
                      },
                      poisoned: false,
                      ..
                  },
              },
          },
          wallets: {},
          merge_mining_proxies: {},
          chat_clients: [],
          transactions: {},
          wallet_addresses: {},
          utxos: {},
          output_hash: None,
          pre_image: None,
          wallet_connected_to_base_node: {
              "SENDER": "BASE1",
              "RECEIVER": "BASE1",
          },
          seed_nodes: [
              "SEED",
          ],
          wallet_tx_ids: {
              "H4PKrgfUmmpuVUUGQvfbJ1RgGbMzBVmqKhfoSF5XphXpQabDwhm4nhTsq9bmaHU3vpv6wXLe3CaiWukSqE95JxFzY1Q": [
                  14258188626777563570,
                  14176723470028179233,
              ],
              "H46g8JAsyyezwWVpmMawBKmk9j5aGFh1B6aNhi9kb42cnLwR4wiSFHeGc9Y7LbqbzW81cwP417ceJGctmtBR4CYSJb4": [
                  14258188626777563570,
                  14176723470028179233,
              ],
          },
          errors: [],
          last_imported_tx_ids: [],
          last_merge_miner_response: Null,
      }