Skip to content

Tests for comment payouts

Michał Kudela requested to merge kudmich/tests/comment-payouts into develop

Changes included in this merge request:

  1. Add test test_cumulative_payout_for_comments in 2 forms:
  • complete_graph: nodes work in a classic network (each node is connected to each other)
  • bastion: every miner node is only connected to its own ApiNode. ApiNodes are connected to each other.
  1. Function run_networks has been changed:
  • This function is used to connect nodes into a network. However, this function was not working properly. In the original version of the function, each node in the network was loaded serially, then it was turned on. This led to network startup errors when loading large block_logs. The fix was to change the way nodes are enabled to parallel. When loading block logs, each node reads block_log serially first. The next step is to turn on all nodes with the same timestamp in parallel.
  • Port assignment for network nodes has been added. For each test, ports are assigned depending on the test worker (assigned by pytest).
  1. Changes in the run_networks function affected the fork_tests CI job. This has been divided into 3 independent jobs.
  2. Changes in CI yaml - use absolute path for JUNIT_REPORT
Edited by Michał Kudela

Merge request reports