From 5ec03626280a45179bc1af895483edf11d790497 Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Mon, 15 Jul 2024 15:27:40 +0700 Subject: [PATCH] integration: wait for caplin snap open finish (#11124) --- cmd/integration/commands/stages.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/integration/commands/stages.go b/cmd/integration/commands/stages.go index 4ba696e0ef4..3fafd5ddb59 100644 --- a/cmd/integration/commands/stages.go +++ b/cmd/integration/commands/stages.go @@ -1346,11 +1346,7 @@ func allSnapshots(ctx context.Context, db kv.RoDB, logger log.Logger) (*freezebl _allBorSnapshotsSingleton.OptimisticalyReopenFolder() return nil }) - g.Go(func() error { return _aggSingleton.OpenFolder() }) //TODO: open in read-only if erigon running? - err := g.Wait() - if err != nil { - panic(err) - } + g.Go(func() error { return _aggSingleton.OpenFolder() }) g.Go(func() error { chainConfig := fromdb.ChainConfig(db) var beaconConfig *clparams.BeaconChainConfig @@ -1374,6 +1370,10 @@ func allSnapshots(ctx context.Context, db kv.RoDB, logger log.Logger) (*freezebl logger.Info("[downloads]", "locked", er == nil, "at", mtime.Format("02 Jan 06 15:04 2006")) return nil }) + err := g.Wait() + if err != nil { + panic(err) + } _allSnapshotsSingleton.LogStat("blocks") _allBorSnapshotsSingleton.LogStat("bor")