File tree 1 file changed +1
-2
lines changed
client/src/test/java/org/asynchttpclient/test 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public class TestUtils {
74
74
public static final Publisher <ByteBuffer > LARGE_IMAGE_PUBLISHER ;
75
75
public static final File SIMPLE_TEXT_FILE ;
76
76
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 () );
78
78
79
79
static {
80
80
try {
@@ -176,7 +176,6 @@ public static Server newJettyHttpServer(int port) {
176
176
public static void addHttpConnector (Server server , int port ) {
177
177
ServerConnector connector = new ServerConnector (server );
178
178
connector .setPort (port );
179
-
180
179
server .addConnector (connector );
181
180
}
182
181
You can’t perform that action at this time.
0 commit comments