Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

[LC-272] fixed to add limited tx_items to queue #461

Merged
merged 1 commit into from
Feb 13, 2020
Merged

Conversation

yakkle
Copy link
Member

@yakkle yakkle commented Jan 13, 2020

  • tx_items has maximum items that not over tx_max_size or tx_max_count
  • monkeypatch configure value in test_custom_tx_value
  • fixed blocking issue when set maxsize in TxMessagesQueue

current

tx_list added until over limited size or count from queue.
First take it from the queue, then check the status, and then add it back to the queue if the condition is false. So, re-added item is located on last of queue.

will be

Add tx_item to a limited size or count. tx_list is now readily available from the queue.

@yakkle yakkle requested a review from a team January 13, 2020 10:22
@yakkle yakkle changed the title [LC-272] fixed to add tx_items of restricted size to queue [LC-272] fixed to add limited tx_items to queue Jan 15, 2020
@yakkle yakkle self-assigned this Jan 16, 2020
class TestTxMessages:
tx_count = 50

@pytest.mark.parametrize("tx_items", [tx_count], indirect=True)
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

SUPER USEFUL parametrized fixture!

 - tx_items has maximum items that not over tx_max_size or tx_max_count
 - monkeypatch configure value in test_custom_tx_value
 - fixed blocking issue when set maxsize in TxMessagesQueue
@yakkle yakkle merged commit fb9a0c7 into develop Feb 13, 2020
@yakkle yakkle deleted the feature/LC-272 branch February 18, 2020 02:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants