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