[ 
https://issues.apache.org/jira/browse/CASSANDRA-7661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeremiah Jordan resolved CASSANDRA-7661.
----------------------------------------

    Resolution: Duplicate

> org.apache.cassandra.utils.BitSetTest fails if you don't have 
> /usr/share/dict/words
> -----------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-7661
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7661
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tests
>            Reporter: Jeremiah Jordan
>            Priority: Trivial
>
> org.apache.cassandra.utils.WordGenerator used by BitSetTests just assumes you 
> have the file /usr/share/dict/words on your system.  If you don't it fails.  
> We probably shouldn't have unit tests depending on arbitrary external files.
> {noformat}
>     [junit] Testsuite: org.apache.cassandra.utils.BitSetTest
>     [junit] Tests run: 4, Failures: 0, Errors: 1, Time elapsed: 2.044 sec
>     [junit]
>     [junit] Testcase: compareBitSets(org.apache.cassandra.utils.BitSetTest):  
> Caused an ERROR
>     [junit] java.io.FileNotFoundException: /usr/share/dict/words (No such 
> file or directory)
>     [junit] java.lang.RuntimeException: java.io.FileNotFoundException: 
> /usr/share/dict/words (No such file or directory)
>     [junit]   at 
> org.apache.cassandra.utils.KeyGenerator$WordGenerator.reset(KeyGenerator.java:137)
>     [junit]   at 
> org.apache.cassandra.utils.KeyGenerator$WordGenerator.<init>(KeyGenerator.java:126)
>     [junit]   at 
> org.apache.cassandra.utils.BitSetTest.compareBitSets(BitSetTest.java:50)
>     [junit] Caused by: java.io.FileNotFoundException: /usr/share/dict/words 
> (No such file or directory)
>     [junit]   at java.io.FileInputStream.open(Native Method)
>     [junit]   at java.io.FileInputStream.<init>(FileInputStream.java:146)
>     [junit]   at java.io.FileInputStream.<init>(FileInputStream.java:101)
>     [junit]   at 
> org.apache.cassandra.utils.KeyGenerator$WordGenerator.reset(KeyGenerator.java:135)
>     [junit]
>     [junit]
>     [junit] Test org.apache.cassandra.utils.BitSetTest FAILED
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to