Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-4345

Re-testing issue with testAutomaticReload

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Received (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 7.0
    • Fix Version/s: None
    • Component/s: Unit Testing Framework
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      0
    • Documentation Status:
      Needed

      Description

      I'm getting this error:

      DSpaceConfigurationServiceTest.testAutomaticReload:532 expected:<D[-s]pace> but was:<D[S]pace>

      when I'm running tests:

      mvn test -Dmaven.test.skip=false

      Looking at the code (org.dspace.servicemanager.config:testAutomaticReload), the test tries to compare prop.to.auto.reload with "D-space".

      In my case I think this test is failing because I'm running the tests in an already compiled code. And have two different source and build target values, because of a previous test:
      ./dspace-services/src/test/resources/config/local.properties:prop.to.auto.reload = D-space
      ./dspace-services/ target /test-classes/config/local.properties:prop.to.auto.reload = DSpace

      I have to change it back manually in order to work. This is, of course, a minor issue, but shouldn't the test went back to the default value afterwards?

       

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            paulo_graca Paulo Graça
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: