@@ -134,7 +134,15 @@ private static int getPort(URI uri) {
134
134
}
135
135
136
136
@ Test (groups = { "standalone" , "default_provider" })
137
- public void httpToHttpsRedirect () throws Throwable {
137
+ // FIXME find a way to make this threadsafe, other, set @Test(singleThreaded = true)
138
+ public void httpToHttpsRunAllTestsSequentially () throws Exception {
139
+ httpToHttpsRedirect ();
140
+ httpToHttpsProperConfig ();
141
+ relativeLocationUrl ();
142
+ }
143
+
144
+ // @Test(groups = { "standalone", "default_provider" })
145
+ public void httpToHttpsRedirect () throws Exception {
138
146
isSet .getAndSet (false );
139
147
140
148
AsyncHttpClientConfig cg = new AsyncHttpClientConfig .Builder ().setMaximumNumberOfRedirects (5 ).setFollowRedirects (true ).build ();
@@ -153,8 +161,8 @@ public String getTargetUrl2() {
153
161
return String .format ("https://127.0.0.1:%d/foo/test" , port2 );
154
162
}
155
163
156
- @ Test (groups = { "standalone" , "default_provider" })
157
- public void httpToHttpsProperConfig () throws Throwable {
164
+ // @Test(groups = { "standalone", "default_provider" })
165
+ public void httpToHttpsProperConfig () throws Exception {
158
166
isSet .getAndSet (false );
159
167
160
168
AsyncHttpClientConfig cg = new AsyncHttpClientConfig .Builder ().setMaximumNumberOfRedirects (5 ).setFollowRedirects (true ).build ();
@@ -175,8 +183,8 @@ public void httpToHttpsProperConfig() throws Throwable {
175
183
}
176
184
}
177
185
178
- @ Test (groups = { "standalone" , "default_provider" })
179
- public void relativeLocationUrl () throws Throwable {
186
+ // @Test(groups = { "standalone", "default_provider" })
187
+ public void relativeLocationUrl () throws Exception {
180
188
isSet .getAndSet (false );
181
189
182
190
AsyncHttpClientConfig cg = new AsyncHttpClientConfig .Builder ().setMaximumNumberOfRedirects (5 ).setFollowRedirects (true ).build ();
0 commit comments