File tree 1 file changed +2
-0
lines changed
test/framework/src/main/java/org/elasticsearch/test
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 51
51
import org .elasticsearch .plugins .Plugin ;
52
52
import org .elasticsearch .script .ScriptService ;
53
53
import org .elasticsearch .search .internal .SearchContext ;
54
+ import org .elasticsearch .transport .TransportSettings ;
54
55
import org .junit .AfterClass ;
55
56
import org .junit .BeforeClass ;
56
57
@@ -198,6 +199,7 @@ private Node newNode() {
198
199
.put (ScriptService .SCRIPT_MAX_COMPILATIONS_RATE .getKey (), "1000/1m" )
199
200
.put (EsExecutors .PROCESSORS_SETTING .getKey (), 1 ) // limit the number of threads created
200
201
.put ("transport.type" , getTestTransportType ())
202
+ .put (TransportSettings .PORT .getKey (), ESTestCase .getPortRange ())
201
203
.put (Node .NODE_DATA_SETTING .getKey (), true )
202
204
.put (NodeEnvironment .NODE_ID_SEED_SETTING .getKey (), random ().nextLong ())
203
205
// default the watermarks low values to prevent tests from failing on nodes without enough disk space
You can’t perform that action at this time.
0 commit comments