Skip to content

Commit e7fd55d

Browse files
committed
remove dependence on /mnt/glusterfs and GlusterFileSystem from path
1 parent f68f8b9 commit e7fd55d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/test/java/org/gluster/test/TestGlusterFuseInputStream.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
import org.junit.Test;
1111

1212
public class TestGlusterFuseInputStream{
13-
final String infile = "/mnt/glusterfs/testGFIStream";
13+
String infile ;
1414

1515
@Before
1616
public void create() throws Exception{
17-
//setup
17+
//setup: no need for gluster specific path, since its just reading from local path
18+
infile=File.createTempFile("TestGlusterFuseInputStream"+System.currentTimeMillis(),"txt").getAbsolutePath();
1819
final GlusterFUSEOutputStream stream = new GlusterFUSEOutputStream(infile,true);
1920
stream.write("hello there, certainly, there is some data in this stream".getBytes());
2021
stream.close();
21-
2222
}
2323

2424
@Test

0 commit comments

Comments
 (0)