Skip to content

Commit

Permalink
ff
Browse files Browse the repository at this point in the history
  • Loading branch information
刘斌 authored and 刘斌 committed Nov 13, 2015
1 parent 0fc1f8f commit 2efce68
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/java/com/qiniu/storage/FormUploadTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,12 @@ class MyRet {

// @Test
public void testFormLargeSize() {
Config.PUT_THRESHOLD = 21 * 1024 * 1024;
Config.PUT_THRESHOLD = 25 * 1024 * 1024;

final String expectKey = "yyyyyy";
File f = null;
try {
f = TempFile.createFile(Config.PUT_THRESHOLD / 1024);
f = TempFile.createFile(Config.PUT_THRESHOLD / 1024 - 1);
} catch (IOException e) {
e.printStackTrace();
}
Expand All @@ -280,13 +280,13 @@ public void testFormLargeSize() {

// @Test
public void testFormLargeSize2() {
Config.PUT_THRESHOLD = 21 * 1024 * 1024;
Config.PUT_THRESHOLD = 25 * 1024 * 1024;

final String expectKey = "xxxxxxx";
byte[] bb = null;
File f = null;
try {
f = TempFile.createFile(Config.PUT_THRESHOLD / 1024);
f = TempFile.createFile(Config.PUT_THRESHOLD / 1024 - 1);
bb = new byte[(int) (f.length())];
FileInputStream fis = new FileInputStream(f);
fis.read(bb, 0, (int) (f.length()));
Expand Down

0 comments on commit 2efce68

Please sign in to comment.