Skip to content

Commit 120ab71

Browse files
committed
minor clean up
1 parent 038c9b6 commit 120ab71

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/src/test/java/org/asynchttpclient/test/TestUtils.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public class TestUtils {
7474
public static final Publisher<ByteBuffer> LARGE_IMAGE_PUBLISHER;
7575
public static final File SIMPLE_TEXT_FILE;
7676
public static final String SIMPLE_TEXT_FILE_STRING;
77-
private static final LoginService LOGIN_SERVICE = new HashLoginService("MyRealm", "src/test/resources/realm.properties");
77+
private static final LoginService LOGIN_SERVICE = new HashLoginService("MyRealm", Thread.currentThread().getContextClassLoader().getResource("realm.properties").toString());
7878

7979
static {
8080
try {
@@ -176,7 +176,6 @@ public static Server newJettyHttpServer(int port) {
176176
public static void addHttpConnector(Server server, int port) {
177177
ServerConnector connector = new ServerConnector(server);
178178
connector.setPort(port);
179-
180179
server.addConnector(connector);
181180
}
182181

0 commit comments

Comments
 (0)