Spring Boot 1.4 + Hibernate 5 Integration Test ''java.io.IOException: Too many open files Error''
<p>I use spring boot 1.4 for testing (the new annotation @SpringBootTest ...)</p>

<p>when i run it integration test.i get the following error:</p>

<pre><code>[2016-10-11 11:54:13.762] [tiger-All-Series] [main] [] INFO o.s.o.j.LocalContainerEntityManagerFactoryBean@buildNativeEntityManagerFactory:382 - Initialized JPA EntityManagerFactory for persistence unit 'default'
[2016-10-11 11:54:13.993] [tiger-All-Series] [pool-6-thread-1] [] ERROR o.a.h.i.n.c.InternalHttpAsyncClient@run:66 - I/O reactor terminated abnormally
org.apache.http.nio.reactor.IOReactorException: Failure opening selector
    at org.apache.http.impl.nio.reactor.AbstractIOReactor.&lt;init&gt;(AbstractIOReactor.java:103)
    at org.apache.http.impl.nio.reactor.BaseIOReactor.&lt;init&gt;(BaseIOReactor.java:85)
    at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:318)
    at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:192)
    at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Too many open files
    at sun.nio.ch.IOUtil.makePipe(Native Method)
    at sun.nio.ch.EPollSelectorImpl.&lt;init&gt;(EPollSelectorImpl.java:65)
    at sun.nio.ch.EPollSelectorProvider.openSelector(EPollSelectorProvider.java:36)
    at java.nio.channels.Selector.open(Selector.java:227)
    at org.apache.http.impl.nio.reactor.AbstractIOReactor.&lt;init&gt;(AbstractIOReactor.java:101)
    ... 5 common frames omitted
</code></pre>

<p>this happened on the second test class. (it seems the problem of the Hibernate EntityManagerFactory) ,i get some information form here <a href="https://stackoverflow.com/a/15052288/6329620">stackoverflow</a>
but it can`t resolve my problem</p>