cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r916497 - /incubator/cassandra/trunk/test/unit/org/apache/cassandra/streaming/BootstrapTest.java
Date Thu, 25 Feb 2010 23:51:11 GMT
Author: jbellis
Date: Thu Feb 25 23:51:10 2010
New Revision: 916497

URL: http://svn.apache.org/viewvc?rev=916497&view=rev
Log:
avoid hardcoding unix-style path names.  patch by jbellis

Modified:
    incubator/cassandra/trunk/test/unit/org/apache/cassandra/streaming/BootstrapTest.java

Modified: incubator/cassandra/trunk/test/unit/org/apache/cassandra/streaming/BootstrapTest.java
URL: http://svn.apache.org/viewvc/incubator/cassandra/trunk/test/unit/org/apache/cassandra/streaming/BootstrapTest.java?rev=916497&r1=916496&r2=916497&view=diff
==============================================================================
--- incubator/cassandra/trunk/test/unit/org/apache/cassandra/streaming/BootstrapTest.java
(original)
+++ incubator/cassandra/trunk/test/unit/org/apache/cassandra/streaming/BootstrapTest.java
Thu Feb 25 23:51:10 2010
@@ -36,11 +36,10 @@
     @Test
     public void testGetNewNames() throws IOException
     {
-        SSTable.Descriptor desc = SSTable.Descriptor.fromFilename("/Keyspace1/Standard1-500-Data.db");
-        PendingFile[] pendingFiles = new PendingFile[]{
-            new PendingFile(desc, "Data.db", 100),
-            new PendingFile(desc, "Index.db", 100),
-            new PendingFile(desc, "Filter.db",100)};
+        SSTable.Descriptor desc = SSTable.Descriptor.fromFilename(new File("Keyspace1", "Standard1-500-Data.db").toString());
+        PendingFile[] pendingFiles = new PendingFile[]{ new PendingFile(desc, "Data.db",
100),
+                                                        new PendingFile(desc, "Index.db",
100),
+                                                        new PendingFile(desc, "Filter.db",
100) };
         StreamInitiateVerbHandler bivh = new StreamInitiateVerbHandler();
 
         // map the input (remote) contexts to output (local) contexts



Mime
View raw message