Skip to content

Commit

Permalink
delays one of the validators
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Oct 4, 2024
1 parent 1fddc7b commit 6c6f247
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions test/e2e/timeouts.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@ func Timeouts(logger *log.Logger) error {

logger.Println("Starting testnets")
// only start 3/4 of the nodes
testnet.NoError("failed to start testnets", testNet.Start(ctx, 0, 1, 2, 3))
testnet.NoError("failed to start testnets", testNet.Start(ctx, 0, 1, 2))

logger.Println("Waiting for some time to produce blocks")
time.Sleep(60 * time.Second)
//
//// now start the last node
//testNet.Start(ctx, 3)
//
//logger.Println("Waiting for some time for the last node to catch" +
// " up and" +
// " produce blocks")
//time.Sleep(120 * time.Second)

// now start the last node
testNet.Start(ctx, 3)

Check failure on line 57 in test/e2e/timeouts.go

View workflow job for this annotation

GitHub Actions / lint / golangci-lint

Error return value of `testNet.Start` is not checked (errcheck)

logger.Println("Waiting for some time for the last node to catch" +
" up and" +
" produce blocks")
time.Sleep(120 * time.Second)
// TODO can extend the test by turning off one of the nodes and checking if the network still works

logger.Println("Reading blockchain headers")
Expand Down

0 comments on commit 6c6f247

Please sign in to comment.