Skip to content

Commit

Permalink
Improve tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreibancioiu committed Oct 9, 2024
1 parent 2a664c7 commit ed30157
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion systemtests/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Configuration:
check_data_directory: str
check_data_num_blocks: int
view_url: str
custom_currency_issue_cost: int = 50000000000000000
memento_file: str = ""
sponsor_secret_key: bytes = bytes.fromhex(os.environ.get("SPONSOR_SECRET_KEY", ""))
users_mnemonic: str = os.environ.get("USERS_MNEMONIC", "")
Expand Down Expand Up @@ -89,7 +90,7 @@ class Configuration:
network_name="untitled",
native_currency="EGLD",
config_file_custom_currencies="systemtests/rosetta_config/localnet-custom-currencies.json",
num_historical_epochs=2,
num_historical_epochs=3,
observer_url="",
proxy_url="http://localhost:7950",
activation_epoch_sirius=1,
Expand All @@ -101,5 +102,6 @@ class Configuration:
check_data_num_blocks=0,
memento_file="systemtests/memento/localnet.json",
view_url="http://localhost:7950/transaction/{hash}?withResults=true&withLogs=true",
custom_currency_issue_cost=5000000000000000000
),
}
1 change: 1 addition & 0 deletions systemtests/generate_testdata_on_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ def __init__(self, configuration: Configuration, accounts: BunchOfAccounts, meme
self.transaction_computer = TransactionComputer()
self.transactions_converter = TransactionsConverter()
self.transactions_factory_config = TransactionsFactoryConfig(chain_id=configuration.network_id)
self.transactions_factory_config.issue_cost = configuration.custom_currency_issue_cost
self.nonces_tracker = NoncesTracker(configuration.proxy_url)
self.token_management_transactions_factory = TokenManagementTransactionsFactory(self.transactions_factory_config)
self.token_management_outcome_parser = TokenManagementTransactionsOutcomeParser()
Expand Down
2 changes: 1 addition & 1 deletion systemtests/localnet.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[general]
log_level = "*:DEBUG"
genesis_delay_seconds = 10
rounds_per_epoch = 40
rounds_per_epoch = 50
round_duration_milliseconds = 4000

[metashard]
Expand Down

0 comments on commit ed30157

Please sign in to comment.