From 1566e8b09c7071969c21d68b700cef9f80b8363d Mon Sep 17 00:00:00 2001 From: Holger Nahrstaedt <holgernahrstaedt@gmx.de> Date: Sat, 24 Oct 2020 15:56:02 +0200 Subject: [PATCH] ncrease timeout and retry cound in beempy --- CHANGELOG.rst | 1 + beem/cli.py | 12 ++++++------ tests/beem/test_cli.py | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 61c5ba5f..e0a8283e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -8,6 +8,7 @@ Changelog * Remove unnecessary requirements (pylibscrypt and future * add new node (fin.hive.3speak.co) and change change rpc.esteem.app to rpc.ecency.com * Replace diff_match_patch by difflib and add unit tests +* Increase timeout and retry cound in beempy 0.24.13 ------- diff --git a/beem/cli.py b/beem/cli.py index 4d5447b1..d18d7f49 100644 --- a/beem/cli.py +++ b/beem/cli.py @@ -315,8 +315,8 @@ def cli(node, offline, no_broadcast, no_wallet, unsigned, create_link, steem, hi path=path, debug=debug, num_retries=10, - num_retries_call=3, - timeout=15, + num_retries_call=5, + timeout=30, autoconnect=autoconnect ) elif steem: @@ -334,8 +334,8 @@ def cli(node, offline, no_broadcast, no_wallet, unsigned, create_link, steem, hi path=path, debug=debug, num_retries=10, - num_retries_call=3, - timeout=15, + num_retries_call=5, + timeout=30, autoconnect=autoconnect ) else: @@ -353,8 +353,8 @@ def cli(node, offline, no_broadcast, no_wallet, unsigned, create_link, steem, hi path=path, debug=debug, num_retries=10, - num_retries_call=3, - timeout=15, + num_retries_call=5, + timeout=30, autoconnect=autoconnect ) diff --git a/tests/beem/test_cli.py b/tests/beem/test_cli.py index 6696522e..2842b4e2 100644 --- a/tests/beem/test_cli.py +++ b/tests/beem/test_cli.py @@ -276,7 +276,7 @@ class Testcases(unittest.TestCase): def test_newaccount(self): runner = CliRunner() - result = runner.invoke(cli, ['-dx', 'newaccount', 'beem3'], input="test\ntest\ntest\n") + result = runner.invoke(cli, ['-dx', 'newaccount', 'beem3'], input="test\ntest\n") self.assertEqual(result.exit_code, 0) result = runner.invoke(cli, ['-dx', 'newaccount', '--owner', 'STM7mLs2hns87f7kbf3o2HBqNoEaXiTeeU89eVF6iUCrMQJFzBsPo', '--active', 'STM7rUmnpnCp9oZqMQeRKDB7GvXTM9KFvhzbA3AKcabgTBfQZgHZp', -- GitLab