mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-14 11:49:04 +01:00
Merged transports' finish() and dispose() methods.
This commit is contained in:
@@ -289,10 +289,9 @@ public class RemovableDrivePluginTest extends TestCase {
|
||||
out.write(new byte[123]);
|
||||
out.flush();
|
||||
out.close();
|
||||
writer.finish();
|
||||
assertEquals(123L, files[0].length());
|
||||
// Disposing of the writer should delete the file
|
||||
writer.dispose();
|
||||
writer.dispose(true);
|
||||
files = drive1.listFiles();
|
||||
assertTrue(files == null || files.length == 0);
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ public class SimpleSocketPluginTest extends TestCase {
|
||||
assertTrue(latch.await(1, TimeUnit.SECONDS));
|
||||
assertFalse(error.get());
|
||||
// Clean up
|
||||
conn.getInputStream().close(); // FIXME: Change the API
|
||||
conn.dispose(true);
|
||||
ss.close();
|
||||
plugin.stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user