• Andy Wilkinson's avatar
    Avoid race between file creation and its contents being written · f10c9b53
    Andy Wilkinson authored
    Previously, SampleIntegrationParentApplicationTests assumed that when
    an output file existed on disk its contents would have been written
    in their entirety. This assumption does not hold true and causes the
    test to fail intermittently as it incorrectly determines that the test
    has produced no output.
    
    This commit updates the test to wait for up to 30 seconds for the
    output files to appear on disk and for the expected content to be
    found in one of those files. If the files exist but do not
    contain the expected content the test will keep trying until it does
    or until too much time as elapsed.
    
    Fixes gh-2380
    f10c9b53
Name
Last commit
Last update
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
spring-boot-versions Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
pom.xml Loading commit data...