Uploaded image for project: 'Terrier Core'
  1. Terrier Core
  2. TR-555

Unit tests for 5.1 still do not pass on Windows

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: tests
    • Labels:
      None

      Description

      itWorksBlocksFeatures still fails tests on windows 10 under both CMD and Powershell. Looks as if the server is not shutting down correctly from the previous test.

      Tests run: 466, Failures: 0, Errors: 1, Skipped: 2, Time elapsed: 191.025 sec <<< FAILURE! - in main.TerrierDefaultTestSuite
      itWorksBlocksFeatures(org.terrier.rest.TestClientAndServer) Time elapsed: 0.651 sec <<< ERROR!
      java.lang.RuntimeException: Could not access http://127.0.0.1:33123//search/trec?query=%22token1+token2%22&controls=matching%3Aorg.terrier.matching.FatFeaturedScoringMatching%2Corg.terrier.matching.daat.FatFull
              at org.terrier.rest.TestClientAndServer.itWorksBlocksFeatures(TestClientAndServer.java:76)
      Caused by: java.io.IOException: Could not contact REST server at http://127.0.0.1:33123//search/trec?query=%22token1+token2%22&controls=matching%3Aorg.terrier.matching.FatFeaturedScoringMatching%2Corg.terrier.matching.daat.FatFull : 500
              at org.terrier.rest.TestClientAndServer.itWorksBlocksFeatures(TestClientAndServer.java:76)


      Results :

      Tests in error:
        TestClientAndServer.itWorksBlocksFeatures:76 » Runtime Could not access http:/...

      Tests run: 517, Failures: 0, Errors: 1, Skipped: 2

        Attachments

          Activity

          Hide
          richardm Richard McCreadie added a comment -

          Appears to be a local address lookup issue.

          Error appears inconsistent, sometimes disconnecting from the internet fixes the issue. Other times not.

          Show
          richardm Richard McCreadie added a comment - Appears to be a local address lookup issue. Error appears inconsistent, sometimes disconnecting from the internet fixes the issue. Other times not.

            People

            • Assignee:
              craigm Craig Macdonald
              Reporter:
              richardm Richard McCreadie
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: