hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Surendra Singh Lilhore (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-8810) Correct assertions for TestDFSInotifyEventInputStream.
Date Thu, 23 Jul 2015 03:35:04 GMT
Surendra Singh Lilhore created HDFS-8810:
--------------------------------------------

             Summary: Correct assertions for TestDFSInotifyEventInputStream.
                 Key: HDFS-8810
                 URL: https://issues.apache.org/jira/browse/HDFS-8810
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: test
            Reporter: Surendra Singh Lilhore


Some assertions are wrong in the test. Here is an example.
{code}
    Assert.assertTrue(batch.getEvents()[0].getEventType() == Event.EventType.RENAME);
      Event.RenameEvent re3 = (Event.RenameEvent) batch.getEvents()[0];
      Assert.assertTrue(re3.getDstPath().equals("/dir/file5"));
      Assert.assertTrue(re3.getSrcPath().equals("/file5"));
      Assert.assertTrue(re.getTimestamp() > 0);
{code}

https://issues.apache.org/jira/browse/HDFS-8735?focusedCommentId=14636571&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14636571



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message