try reduce stack size in test

This commit is contained in:
Etan Kissling 2024-06-21 18:36:54 +02:00
parent 0d89dcd363
commit c0d07e1b24
No known key found for this signature in database
GPG Key ID: B21DA824C5A3D03D
1 changed files with 33 additions and 29 deletions

View File

@ -146,6 +146,8 @@ suite "Light client processor" & preset():
proc applyPeriodWithoutSupermajority(
period: SyncCommitteePeriod, update: ref ForkedLightClientUpdate) =
for i in 0 ..< 2:
# Reduce stack size by making this a `proc`
proc applyInitial(update: ref ForkedLightClientUpdate) =
res = processor[].storeObject(
MsgSource.gossip, getBeaconTime(), update[])
check update[].kind <= store[].kind
@ -185,6 +187,8 @@ suite "Light client processor" & preset():
forkyStore.best_valid_update.isSome
not forkyStore.best_valid_update.get.matches(forkyUpdate)
applyInitial(update)
# Reduce stack size by making this a `proc`
proc applyDuplicate(update: ref ForkedLightClientUpdate) =
res = processor[].storeObject(