Skip to content

fix(sync): remove mem::take in all syncs (#5721) #1139

fix(sync): remove mem::take in all syncs (#5721)

fix(sync): remove mem::take in all syncs (#5721) #1139

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / JUnit Test Report failed Sep 3, 2023 in 0s

30 tests run, 27 passed, 0 skipped, 3 failed.

Annotations

Check failure on line 1 in feature:8:3

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

feature:8:3.Scenario: Wallet sending and receiving one-sided transactions: tests/features/WalletTransactions.feature:8:3

Step panicked. Captured output: called `Result::unwrap()` on an `Err` value: Status { code: Unimplemented, metadata: MetadataMap { headers: {"date": "Sun, 03 Sep 2023 04:11:13 GMT", "content-type": "application/grpc"} }, source: None }
Raw output
Scenario: Wallet sending and receiving one-sided transactions
     Given I have a seed node NODE
     When I have 1 base nodes connected to all seed nodes
     When I have wallet WALLET_A connected to all seed nodes
     When I have wallet WALLET_B connected to all seed nodes
     When I have wallet WALLET_C connected to all seed nodes
     When I have mining node MINER connected to base node NODE and wallet WALLET_A
     When mining node MINER mines 15 blocks
     Then all nodes are at height 15
      Step failed:
      Defined: tests/features/WalletTransactions.feature:16:5
      Matched: integration_tests/tests/steps/node_steps.rs:166:1
      Step panicked. Captured output: called `Result::unwrap()` on an `Err` value: Status { code: Unimplemented, metadata: MetadataMap { headers: {"date": "Sun, 03 Sep 2023 04:11:13 GMT", "content-type": "application/grpc"} }, source: None }
      Client {
          base_nodes: {},
          blocks: {},
          miners: {
              "MINER": MinerProcess {
                  name: "MINER",
                  base_node_name: "NODE",
                  wallet_name: "WALLET_A",
                  mine_until_height: 100000,
              },
          },
          ffi_wallets: {},
          wallets: {},
          merge_mining_proxies: {},
          chat_clients: [],
          transactions: {},
          wallet_addresses: {},
          utxos: {},
          output_hash: None,
          pre_image: None,
          wallet_connected_to_base_node: {
              "WALLET_A": "NODE",
              "WALLET_B": "NODE",
              "WALLET_C": "NODE",
          },
          seed_nodes: [
              "NODE",
          ],
          wallet_tx_ids: {},
          errors: [],
          last_imported_tx_ids: [],
          last_merge_miner_response: Null,
      }

Check failure on line 1 in feature:8:3

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

feature:8:3.Scenario: Wallet sending and receiving one-sided transactions: tests/features/WalletTransactions.feature:8:3

Step panicked. Captured output: Service on port 18402 never started
Raw output
Scenario: Wallet sending and receiving one-sided transactions | Retry attempt: 1/2
     Given I have a seed node NODE
     When I have 1 base nodes connected to all seed nodes
     When I have wallet WALLET_A connected to all seed nodes
      Step failed:
      Defined: tests/features/WalletTransactions.feature:11:5
      Matched: integration_tests/tests/steps/wallet_steps.rs:85:1
      Step panicked. Captured output: Service on port 18402 never started
      Client {
          base_nodes: {},
          blocks: {},
          miners: {},
          ffi_wallets: {},
          wallets: {},
          merge_mining_proxies: {},
          chat_clients: [],
          transactions: {},
          wallet_addresses: {},
          utxos: {},
          output_hash: None,
          pre_image: None,
          wallet_connected_to_base_node: {
              "WALLET_A": "NODE",
          },
          seed_nodes: [
              "NODE",
          ],
          wallet_tx_ids: {},
          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 9, current status is 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 SEED
     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_FAUX_UNCONFIRMED and not cancelled
      Step failed:
      Defined: tests/features/WalletFFI.feature:205:9
      Matched: integration_tests/tests/steps/wallet_steps.rs:495:1
      Step panicked. Captured output: Wallet RECEIVER failed to have at least num 1 txs with status 9, current status is 0
      Client {
          base_nodes: {},
          blocks: {},
          miners: {
              "MINER": MinerProcess {
                  name: "MINER",
                  base_node_name: "BASE1",
                  wallet_name: "SENDER",
                  mine_until_height: 100000,
              },
          },
          ffi_wallets: {
              "FFI_WALLET": WalletFFI {
                  name: "FFI_WALLET",
                  port: 18161,
                  wallet: Mutex {
                      data: Wallet {
                          ptr: 0x00005648fe3d4380,
                          liveness_data: Mutex {
                              data: {
                                  "0c78ed9b9d184a2fd68f6277bed2a474aa9bcb5002065eb24b054056ad4fdd7879": ContactsLivenessData {
                                      ptr: 0x00007fe9ec07c340,
                                  },
                              },
                              poisoned: false,
                              ..
                          },
                          balance: CachedBalance {
                              available: 2400000,
                              time_locked: 0,
                              pending_incoming: 1399330,
                              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: {
              "0c78ed9b9d184a2fd68f6277bed2a474aa9bcb5002065eb24b054056ad4fdd7879": [
                  6761909847552715948,
                  13545051384240010354,
              ],
              "660ffb467db1d4b43859283356be826c64103c5c22cf6654b303dacb2ff2894c43": [
                  6761909847552715948,
                  13545051384240010354,
              ],
          },
          errors: [],
          last_imported_tx_ids: [],
          last_merge_miner_response: Null,
      }