Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-5035

Some tests use incorrect temp directory

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.0
    • tests

    Description

      Some tests that use JUnit's TemporaryFolder rule (e.g., DiskSpaceLimitIntegrationTest FileProcessControllerIntegrationTest) do not specify the temp directory to use as the parent folder for the temporary folder. This can result in the default location being used, which is different from what is specified by the pipeline. This can result in strange behavior, such as a test writing contents to a temporary file without exception but then failing an existence test on the same file.

      The TemporaryFolder rule should be synchronized with the java.io.tmpdir system property.

      Attachments

        Activity

          People

            pivotalsarge Michael W. Dodge
            pivotalsarge Michael W. Dodge
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 20m
                1h 20m