Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

use a const

  • Loading branch information...
commit 201fad6609f0fdeb3717165d150dec0deffc265a 1 parent 1a0a735
Arin Sarkissian authored
1  src/main/java/com/phatduckk/thriftpool/testhelper/testthrift/HelperService.java
@@ -17,6 +17,7 @@
17 17 private TSimpleServer server;
18 18 public static final int PORT = 2222;
19 19 public static final String HOST_NAME = "0.0.0.0";
  20 + public static final String HOST_PUBLIC = "localhost";
20 21
21 22 public HelperService() throws TTransportException {
22 23 TServerSocket tServerSocket = new TServerSocket(new InetSocketAddress(HOST_NAME, PORT));
2  src/test/java/com/phatduckk/thriftpool/ThriftClientPoolTest.java
@@ -32,7 +32,7 @@ public static void tearDown() throws Exception {
32 32 @Test
33 33 public void testBasic() throws Exception {
34 34 // where's the thrift server at???
35   - HostPort hp = new HostPort("localhost", HelperService.PORT);
  35 + HostPort hp = new HostPort(HelperService.HOST_PUBLIC, HelperService.PORT);
36 36
37 37 // factory() is overloaded a few way - check it out for other options...
38 38 ThriftClientOptions options = new ThriftClientOptions();

0 comments on commit 201fad6

Please sign in to comment.
Something went wrong with that request. Please try again.