File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed
src/test/java/org/gluster/test Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,6 @@ public void testTextWriteAndRead() throws Exception{
162
162
163
163
@ org .junit .Test
164
164
public void testZDirs () throws Exception {
165
-
166
165
final Path subDir1 = new Path ("td_dir.1" );
167
166
final Path baseDir = new Path ("td_testDirs1" );
168
167
final Path test1 = new Path ("td_test1" );
@@ -205,7 +204,12 @@ public void testZDirs() throws Exception {
205
204
assertFalse (gfs .exists (subDir1 ));
206
205
207
206
System .out .println ("done." );
208
- }
207
+
208
+ gfs .delete (subDir1 );
209
+ gfs .delete (baseDir );
210
+ gfs .delete (test1 );
211
+ gfs .delete (test1 );
212
+ }
209
213
210
214
@ org .junit .Test
211
215
public void testFiles () throws Exception {
@@ -241,6 +245,11 @@ public void testFiles() throws Exception {
241
245
242
246
gfs .delete (baseDir , true );
243
247
assertFalse (gfs .exists (baseDir ));
248
+
249
+ gfs .delete (subDir1 );
250
+ gfs .delete (baseDir );
251
+ gfs .delete (file1 );
252
+ gfs .delete (file2 );
244
253
}
245
254
246
255
public void testFileIO () throws Exception {
@@ -302,7 +311,11 @@ public void testFileIO() throws Exception {
302
311
gfs .delete (subDir1 , true );
303
312
assertFalse (gfs .exists (subDir1 ));
304
313
gfs .delete (baseDir , true );
305
- assertFalse (gfs .exists (baseDir ));
314
+ assertFalse (gfs .exists (baseDir ));
315
+
316
+ gfs .delete (subDir1 );
317
+ gfs .delete (file1 );
318
+ gfs .delete (baseDir );
306
319
}
307
320
308
321
You can’t perform that action at this time.
0 commit comments