Signed-off-by: Julian Strobl <jmastr@mailbox.org>
This commit is contained in:
Julian Strobl 2024-02-29 12:41:53 +01:00
parent b205c5ff29
commit 65134b4a0b
No known key found for this signature in database
GPG Key ID: E0A8F9AD733499A7
2 changed files with 7 additions and 4 deletions

View File

@ -11,6 +11,6 @@ import (
func TestE2ETestSuite(t *testing.T) { func TestE2ETestSuite(t *testing.T) {
t.Parallel() t.Parallel()
cfg := network.LoaderDefaultConfig() cfg := network.LoaderDefaultConfig()
cfg.NumValidators = 1 cfg.NumValidators = 3
suite.Run(t, NewE2ETestSuite(cfg)) suite.Run(t, NewE2ETestSuite(cfg))
} }

View File

@ -589,9 +589,12 @@ func New(l Logger, baseDir string, cfg Config) (*Network, error) {
l.Log("started validator", idx) l.Log("started validator", idx)
} }
height, err := network.LatestHeight() height := int64(0)
if err != nil { for height < 7 {
return nil, err height, err = network.LatestHeight()
if err != nil {
return nil, err
}
} }
l.Log("started test network at height:", height) l.Log("started test network at height:", height)