File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -166,8 +166,8 @@ public void putLargeFileInputStreamGet() throws Exception {
166166 public void getLargeFile () throws Exception {
167167 final int COUNT = 1000000 ;
168168 DataFile file = Algorithmia .client (key ).file (getFullPath ("largeFiles/" + COUNT + "Numbers" ));
169- File largeFile = File .createTempFile ("TestGetLargeFile" , "Numbers" );
170- PrintStream ps = new PrintStream (largeFile );
169+ File numbersFile = File .createTempFile ("TestGetLargeFile" , "Numbers" );
170+ PrintStream ps = new PrintStream (numbersFile );
171171 for (int i = 0 ; i < COUNT ; i ++) {
172172 ps .println (i );
173173 }
@@ -177,11 +177,11 @@ public void getLargeFile() throws Exception {
177177 }
178178
179179 if (!file .exists ()) {
180- file .put (largeFile );
180+ file .put (numbersFile );
181181 }
182182
183183 File downloaded = file .getFile ();
184- Assert .assertEquals (downloaded .length (), largeFile .length ());
184+ Assert .assertEquals (downloaded .length (), numbersFile .length ());
185185
186186 Scanner in = new Scanner (downloaded );
187187 int lines = 0 ;
@@ -191,7 +191,7 @@ public void getLargeFile() throws Exception {
191191 }
192192 Assert .assertEquals (lines , COUNT );
193193
194- Assert .assertTrue (largeFile .delete ());
194+ Assert .assertTrue (numbersFile .delete ());
195195 }
196196
197197 @ Test
You can’t perform that action at this time.
0 commit comments