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

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

    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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: