File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public Void call() throws Exception {
5656 InputStream responseStream = null ;
5757 try {
5858 responseStream = response .getContent ();
59- FileOutputStream tempFileStream = new FileOutputStream (tempFile );
59+ FileOutputStream tempFileStream = ParseFileUtils . openOutputStream (tempFile );
6060
6161 int nRead ;
6262 byte [] data = new byte [32 << 10 ]; // 32KB
Original file line number Diff line number Diff line change @@ -303,7 +303,9 @@ public void testFetchAsyncSuccess() throws Exception {
303303
304304 ParseHttpClient awsClient = mock (ParseHttpClient .class );
305305 when (awsClient .execute (any (ParseHttpRequest .class ))).thenReturn (mockResponse );
306- File root = temporaryFolder .getRoot ();
306+ // Make sure cache dir does not exist
307+ File root = new File (temporaryFolder .getRoot (), "cache" );
308+ assertFalse (root .exists ());
307309 ParseFileController controller = new ParseFileController (null , root ).awsClient (awsClient );
308310
309311 ParseFile .State state = new ParseFile .State .Builder ()
You can’t perform that action at this time.
0 commit comments