Search in sources :

Example 1 with DetectFileDescriptorLeaks

use of io.vertx.test.core.DetectFileDescriptorLeaks in project vert.x by eclipse.

the class Http2ServerTest method testNetSocketSendFile.

@Test
@DetectFileDescriptorLeaks
public void testNetSocketSendFile() throws Exception {
    Buffer expected = Buffer.buffer(TestUtils.randomAlphaString(1000 * 1000));
    File tmp = createTempFile(expected);
    testNetSocketSendFile(expected, tmp.getAbsolutePath(), 0, expected.length());
}
Also used : Buffer(io.vertx.core.buffer.Buffer) File(java.io.File) Test(org.junit.Test) DetectFileDescriptorLeaks(io.vertx.test.core.DetectFileDescriptorLeaks)

Aggregations

Buffer (io.vertx.core.buffer.Buffer)1 DetectFileDescriptorLeaks (io.vertx.test.core.DetectFileDescriptorLeaks)1 File (java.io.File)1 Test (org.junit.Test)1