Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2742

Few test cases of org.apache.zookeeper.ZooKeeperTest fails in Windows

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 3.5.4, 3.6.0
    • tests
    • None
    • Windows

    Description

      Following test cases fail in Windows environment:
      1. org.apache.zookeeper.ZooKeeperTest.testLsrRootCommand()
      2. org.apache.zookeeper.ZooKeeperTest.testLsrCommand()

      It seems that failure is related to use of "\n" (System dependent new line char)in org.apache.zookeeper.ZooKeeperTest.runCommandExpect(CliCommand, List<String>)

      ......................................
      ......................................
      String result = byteStream.toString();
      assertTrue(result, result.contains(
      StringUtils.joinStrings(expectedResults, "\n")));
      ......................................
      ......................................

      Attachments

        1. ZOOKEEPER-2742-01.patch
          1 kB
          Abhishek Kumar

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            a72877 Abhishek Kumar
            a72877 Abhishek Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment