File tree 2 files changed +2
-4
lines changed
server/src/test/java/org/opensearch/common/io/stream
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 46
46
import java .io .ByteArrayInputStream ;
47
47
import java .io .EOFException ;
48
48
import java .io .IOException ;
49
- import java .net .InetAddress ;
50
49
import java .net .InetSocketAddress ;
51
50
import java .time .Instant ;
52
51
import java .time .ZoneOffset ;
@@ -516,7 +515,7 @@ public void testMapIsWriteable() throws IOException {
516
515
}
517
516
518
517
public void testInetSocketAddress () throws IOException {
519
- InetSocketAddress toWrite = new InetSocketAddress (InetAddress . getLocalHost (), 80 );
518
+ InetSocketAddress toWrite = new InetSocketAddress (0 );
520
519
BytesStreamOutput out = new BytesStreamOutput ();
521
520
out .writeGenericValue (toWrite );
522
521
assertEquals (toWrite , getStreamInput (out .bytes ()).readGenericValue ());
Original file line number Diff line number Diff line change 48
48
49
49
import java .io .EOFException ;
50
50
import java .io .IOException ;
51
- import java .net .InetAddress ;
52
51
import java .net .InetSocketAddress ;
53
52
import java .time .ZoneId ;
54
53
import java .util .ArrayList ;
@@ -313,7 +312,7 @@ public void testSimpleStreams() throws Exception {
313
312
float [] floatArray = { 1.1f , 2.2f , 3.3f };
314
313
out .writeGenericValue (floatArray );
315
314
double [] doubleArray = { 1.1 , 2.2 , 3.3 };
316
- InetSocketAddress inetSocketAddress = new InetSocketAddress (InetAddress . getLocalHost (), 80 );
315
+ InetSocketAddress inetSocketAddress = new InetSocketAddress (0 );
317
316
out .writeGenericValue (doubleArray );
318
317
out .writeString ("hello" );
319
318
out .writeString ("goodbye" );
You can’t perform that action at this time.
0 commit comments