Skip to content

Commit

Permalink
fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
gjhkael committed Feb 23, 2017
1 parent 2ff9a8c commit bafb553
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -22,6 +22,7 @@
import org.junit.Test; import org.junit.Test;


import java.io.InputStream; import java.io.InputStream;
import java.io.OutputStream;


public class CheckConsistencyCommandTest extends AbstractAlluxioShellTest { public class CheckConsistencyCommandTest extends AbstractAlluxioShellTest {
/** /**
Expand Down Expand Up @@ -73,10 +74,9 @@ public void inconsistent() throws Exception {
WriteType.CACHE_THROUGH, 20); WriteType.CACHE_THROUGH, 20);
ufsPath = mFileSystem.getStatus(new AlluxioURI("/testRoot/testDir/testFileB")).getUfsPath(); ufsPath = mFileSystem.getStatus(new AlluxioURI("/testRoot/testDir/testFileB")).getUfsPath();
ufs.deleteFile(ufsPath); ufs.deleteFile(ufsPath);
ufs.create(ufsPath); OutputStream outputStream = ufs.create(ufsPath);
InputStream inputStream = ufs.open(ufsPath);
byte[] bytes = {1, 2, 3}; byte[] bytes = {1, 2, 3};
inputStream.read(bytes); outputStream.write(bytes);
mOutput.reset(); mOutput.reset();
mFsShell.run("checkConsistency", "-r", "/testRoot"); mFsShell.run("checkConsistency", "-r", "/testRoot");
res = mOutput.toString(); res = mOutput.toString();
Expand Down

0 comments on commit bafb553

Please sign in to comment.