Skip to content

Commit fd73672

Browse files
Adjust tests config (NFT creation was failing in epoch 0).
1 parent de6c0b0 commit fd73672

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

systemtests/config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class Configuration:
2929
proxy_url: str
3030
proxy_adapter_port: int
3131
rosetta_port: int
32+
custom_tokens_completness_epoch: int
3233
deactivation_epoch_relayed_v1v2: int
3334
check_construction_native_configuration_file: str
3435
check_construction_custom_configuration_file: str
@@ -55,6 +56,7 @@ class Configuration:
5556
proxy_url=ENV_MAINNET_PROXY_URL or DEFAULT_MAINNET_PROXY_URL,
5657
proxy_adapter_port=10001,
5758
rosetta_port=7091,
59+
custom_tokens_completness_epoch=0,
5860
deactivation_epoch_relayed_v1v2=4294967295,
5961
check_construction_native_configuration_file="",
6062
check_construction_custom_configuration_file="",
@@ -73,6 +75,7 @@ class Configuration:
7375
proxy_url=ENV_DEVNET_PROXY_URL or DEFAULT_DEVNET_PROXY_URL,
7476
proxy_adapter_port=10002,
7577
rosetta_port=7092,
78+
custom_tokens_completness_epoch=0,
7679
deactivation_epoch_relayed_v1v2=4294967295,
7780
check_construction_native_configuration_file="systemtests/mesh_cli_config/devnet-construction-native.json",
7881
check_construction_custom_configuration_file="systemtests/mesh_cli_config/devnet-construction-custom.json",
@@ -93,6 +96,7 @@ class Configuration:
9396
proxy_url=ENV_TESTNET_PROXY_URL or DEFAULT_TESTNET_PROXY_URL,
9497
proxy_adapter_port=10003,
9598
rosetta_port=7093,
99+
custom_tokens_completness_epoch=0,
96100
deactivation_epoch_relayed_v1v2=4294967295,
97101
check_construction_native_configuration_file="systemtests/mesh_cli_config/testnet-construction-native.json",
98102
check_construction_custom_configuration_file="systemtests/mesh_cli_config/testnet-construction-custom.json",
@@ -112,6 +116,7 @@ class Configuration:
112116
proxy_url="http://localhost:7950",
113117
proxy_adapter_port=10004,
114118
rosetta_port=7094,
119+
custom_tokens_completness_epoch=1,
115120
deactivation_epoch_relayed_v1v2=2,
116121
check_construction_native_configuration_file="systemtests/mesh_cli_config/localnet-construction-native.json",
117122
check_construction_custom_configuration_file="systemtests/mesh_cli_config/localnet-construction-custom.json",
@@ -132,6 +137,7 @@ class Configuration:
132137
proxy_url=os.environ.get("INTERNAL_TESTNET_PROXY_URL", ""),
133138
proxy_adapter_port=10005,
134139
rosetta_port=7095,
140+
custom_tokens_completness_epoch=1,
135141
deactivation_epoch_relayed_v1v2=2,
136142
check_construction_native_configuration_file="systemtests/mesh_cli_config/internal-construction-native.json",
137143
check_construction_custom_configuration_file="systemtests/mesh_cli_config/internal-construction-custom.json",

systemtests/generate_testdata_on_network.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ def do_setup(args: Any):
8686
print("Do contract deployments...")
8787
controller.do_create_contract_deployments()
8888

89+
controller.wait_until_epoch(configuration.custom_tokens_completness_epoch)
90+
8991
print("Create some NFTs...")
9092
controller.create_non_fungible_tokens("NFT")
9193

0 commit comments

Comments
 (0)