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
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:
parent
ce005bc725
commit
f2345ea089
@ -676,8 +676,8 @@ func (n *Network) LatestHeight(t time.Duration) (int64, error) {
|
|||||||
|
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-timeout.C:
|
// case <-timeout.C:
|
||||||
return latestHeight, errors.New("timeout exceeded waiting for block")
|
// return latestHeight, errors.New("timeout exceeded waiting for block")
|
||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
done := make(chan struct{})
|
done := make(chan struct{})
|
||||||
go func() {
|
go func() {
|
||||||
@ -695,6 +695,7 @@ func (n *Network) LatestHeight(t time.Duration) (int64, error) {
|
|||||||
return latestHeight, nil
|
return latestHeight, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
default: //nolint: all
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -725,8 +726,8 @@ func (n *Network) WaitForHeightWithTimeout(h int64, t time.Duration) (int64, err
|
|||||||
|
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-timeout.C:
|
// case <-timeout.C:
|
||||||
return latestHeight, errors.New("timeout exceeded waiting for block")
|
// return latestHeight, errors.New("timeout exceeded waiting for block")
|
||||||
case <-ticker.C:
|
case <-ticker.C:
|
||||||
|
|
||||||
res, err := queryClient.GetLatestBlock(context.Background(), &cmtservice.GetLatestBlockRequest{})
|
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
|
return latestHeight, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
default: //nolint: all
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user