Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
haf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hive
haf
Commits
68b51f3a
Commit
68b51f3a
authored
3 years ago
by
Marcin Sobczyk
Browse files
Options
Downloads
Patches
Plain Diff
move waiting for fork from local_tools in system tests to test_tools
parent
fad0f50b
No related branches found
No related tags found
No related merge requests found
Pipeline
#33456
passed
3 years ago
Stage: build_and_test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
hive
+1
-1
1 addition, 1 deletion
hive
tests/integration/system/haf/local_tools.py
+4
-3
4 additions, 3 deletions
tests/integration/system/haf/local_tools.py
with
5 additions
and
4 deletions
hive
@
fec70058
Compare
52820b7a
...
fec70058
Subproject commit
52820b7ac494d6789bc2892770bfbcbf2dd7c565
Subproject commit
fec700589c5ca6a079bd124edd60094182bc2eaf
This diff is collapsed.
Click to expand it.
tests/integration/system/haf/local_tools.py
+
4
−
3
View file @
68b51f3a
...
...
@@ -13,6 +13,7 @@ def make_fork(world, main_chain_trxs=[], fork_chain_trxs=[]):
beta_net
=
world
.
network
(
'
Beta
'
)
alpha_witness_node
=
alpha_net
.
node
(
'
WitnessNode0
'
)
beta_witness_node
=
beta_net
.
node
(
name
=
'
WitnessNode0
'
)
node_under_test
=
world
.
network
(
'
Beta
'
).
node
(
'
NodeUnderTest
'
)
logger
.
info
(
f
'
Making fork at block
{
get_head_block
(
alpha_witness_node
)
}
'
)
...
...
@@ -29,11 +30,11 @@ def make_fork(world, main_chain_trxs=[], fork_chain_trxs=[]):
for
node
in
[
alpha_witness_node
,
beta_witness_node
]:
node
.
wait_for_block_with_number
(
head_block
+
BLOCKS_IN_FORK
)
alpha_net
.
connect_with
(
beta_net
)
for
node
in
[
alpha_witness_node
,
beta_witness_node
]:
node
.
wait_for_block_with_number
(
head_block
+
BLOCKS_IN_FORK
+
BLOCKS_AFTER_FORK
)
node_under_test
.
wait_for_fork
()
head_block
=
get_head_block
(
bet
a_witness_node
)
head_block
=
get_head_block
(
alph
a_witness_node
)
return
head_block
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment