Disable timeouts in E2E test network
Some checks failed
Build / build (pull_request) Successful in 3m9s
E2E Tests / test-e2e (pull_request) Failing after 3m44s
Lint / Run golangci-lint (pull_request) Successful in 4m15s
Integration Tests / test-integration (pull_request) Successful in 2m51s
Unit Tests / test-unit (pull_request) Successful in 2m39s

This commit is contained in:
Prathamesh Musale 2024-03-11 12:15:50 +05:30
parent ce005bc725
commit f2345ea089

View File

@ -676,8 +676,8 @@ func (n *Network) LatestHeight(t time.Duration) (int64, error) {
for {
select {
case <-timeout.C:
return latestHeight, errors.New("timeout exceeded waiting for block")
// case <-timeout.C:
// return latestHeight, errors.New("timeout exceeded waiting for block")
case <-ticker.C:
done := make(chan struct{})
go func() {
@ -695,6 +695,7 @@ func (n *Network) LatestHeight(t time.Duration) (int64, error) {
return latestHeight, nil
}
}
default: //nolint: all
}
}
}
@ -725,8 +726,8 @@ func (n *Network) WaitForHeightWithTimeout(h int64, t time.Duration) (int64, err
for {
select {
case <-timeout.C:
return latestHeight, errors.New("timeout exceeded waiting for block")
// case <-timeout.C:
// return latestHeight, errors.New("timeout exceeded waiting for block")
case <-ticker.C:
res, err := queryClient.GetLatestBlock(context.Background(), &cmtservice.GetLatestBlockRequest{})
@ -736,6 +737,7 @@ func (n *Network) WaitForHeightWithTimeout(h int64, t time.Duration) (int64, err
return latestHeight, nil
}
}
default: //nolint: all
}
}
}