mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-12 07:14:20 +00:00
try reduce stack size in test
This commit is contained in:
parent
0d89dcd363
commit
c0d07e1b24
@ -146,6 +146,8 @@ suite "Light client processor" & preset():
|
|||||||
proc applyPeriodWithoutSupermajority(
|
proc applyPeriodWithoutSupermajority(
|
||||||
period: SyncCommitteePeriod, update: ref ForkedLightClientUpdate) =
|
period: SyncCommitteePeriod, update: ref ForkedLightClientUpdate) =
|
||||||
for i in 0 ..< 2:
|
for i in 0 ..< 2:
|
||||||
|
# Reduce stack size by making this a `proc`
|
||||||
|
proc applyInitial(update: ref ForkedLightClientUpdate) =
|
||||||
res = processor[].storeObject(
|
res = processor[].storeObject(
|
||||||
MsgSource.gossip, getBeaconTime(), update[])
|
MsgSource.gossip, getBeaconTime(), update[])
|
||||||
check update[].kind <= store[].kind
|
check update[].kind <= store[].kind
|
||||||
@ -185,6 +187,8 @@ suite "Light client processor" & preset():
|
|||||||
forkyStore.best_valid_update.isSome
|
forkyStore.best_valid_update.isSome
|
||||||
not forkyStore.best_valid_update.get.matches(forkyUpdate)
|
not forkyStore.best_valid_update.get.matches(forkyUpdate)
|
||||||
|
|
||||||
|
applyInitial(update)
|
||||||
|
|
||||||
# Reduce stack size by making this a `proc`
|
# Reduce stack size by making this a `proc`
|
||||||
proc applyDuplicate(update: ref ForkedLightClientUpdate) =
|
proc applyDuplicate(update: ref ForkedLightClientUpdate) =
|
||||||
res = processor[].storeObject(
|
res = processor[].storeObject(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user