Skip to content

Commit e2294e0

Browse files
author
cool-RR
committed
-
1 parent a1eb1ab commit e2294e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

garlicsim/tests/asynchronous_crunching/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def simpack_check(simpack, cruncher):
123123
leaf,
124124
math_tools.round_to_int(4 - x, up=True)
125125
)
126-
x += path.__len__(start=leaf)
126+
x += path.__len__(start=path.next_node(leaf))
127127

128128
assert len(project.tree.nodes) == x + 1
129129
assert len(project.tree.roots) == 1
@@ -188,7 +188,7 @@ def simpack_check(simpack, cruncher):
188188
leaf,
189189
math_tools.round_to_int(3 - y, up=True)
190190
)
191-
y += path.__len__(start=leaf)
191+
y += path.__len__(start=path.next_node(leaf))
192192

193193

194194
assert len(project.tree.nodes) == x + y + 4

0 commit comments

Comments
 (0)