You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Andor Molnar (JIRA)" <ji...@apache.org> on 2018/03/27 15:20:00 UTC

[jira] [Created] (ZOOKEEPER-3012) Fix unit test: testDataDirAndDataLogDir should not use hardcode test folders

Andor Molnar created ZOOKEEPER-3012:
---------------------------------------

             Summary: Fix unit test: testDataDirAndDataLogDir should not use hardcode test folders
                 Key: ZOOKEEPER-3012
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-3012
             Project: ZooKeeper
          Issue Type: Improvement
          Components: server, tests
    Affects Versions: 3.4.11, 3.5.3
            Reporter: Andor Molnar
            Assignee: Andor Molnar
             Fix For: 3.5.4, 3.6.0, 3.4.13


The following arrange methods uses hard coded values:
{noformat}
when(configMock.getDataDir()).thenReturn("/tmp/zookeeper");
when(configMock.getDataLogDir()).thenReturn("/tmp/zookeeperLog");
{noformat}
Which makes the test fail if the folders exist on the running machine.

Random test folders should be created and removed during cleanup.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)