Rate This Document
Findability
Accuracy
Completeness
Readability

spring-cloud-cli Timeout Error

Symptom

An error is reported in spring-cloud-cli-integration-tests during the compilation.

Key Process and Cause Analysis

The network is poor. Increase the value of timeout to solve the problem.

Conclusion and Solution

Modify the timeout parameter setting of SampleIntegrationTests. The test is successful when the timeout period is set to 20 minutes. If the network condition is poor, increase the timeout period.

  1. Open the CliTester.java file.
    vim spring-cloud-cli-integration-tests/src/test/java/org/springframework/cloud/cli/CliTester.java
  2. Press i to enter the insert mode and modify the value of timeout in line 55:
    • CentOS 7.6 or openEuler 20.03: Change 6 minutes to 20 minutes.
    • CentOS 8.1: Change 6 minutes to 30 minutes.

  3. Press Esc, type :wq!, and press Enter to save the file and exit.
  4. Run the compile command again.
    ./mvnw clean install -Dgpg.skip=true