83
83
import org .junit .jupiter .api .AfterEach ;
84
84
import org .junit .jupiter .api .BeforeEach ;
85
85
import org .junit .jupiter .api .Disabled ;
86
+ import org .junit .jupiter .api .Tag ;
86
87
import org .junit .jupiter .api .Test ;
87
88
import org .junit .jupiter .api .Timeout ;
88
89
import org .junit .jupiter .api .extension .RegisterExtension ;
@@ -2215,6 +2216,7 @@ public void interceptorCallsProceedWithoutClosingPriorResponse() throws Exceptio
2215
2216
assertThat (server .takeRequest ().getSequenceNumber ()).isEqualTo (2 );
2216
2217
}
2217
2218
2219
+ @ Tag ("Slow" )
2218
2220
@ Test public void follow20Redirects () throws Exception {
2219
2221
for (int i = 0 ; i < 20 ; i ++) {
2220
2222
server .enqueue (new MockResponse ()
@@ -2229,6 +2231,7 @@ public void interceptorCallsProceedWithoutClosingPriorResponse() throws Exceptio
2229
2231
.assertBody ("Success!" );
2230
2232
}
2231
2233
2234
+ @ Tag ("Slow" )
2232
2235
@ Test public void follow20Redirects_Async () throws Exception {
2233
2236
for (int i = 0 ; i < 20 ; i ++) {
2234
2237
server .enqueue (new MockResponse ()
@@ -2245,6 +2248,7 @@ public void interceptorCallsProceedWithoutClosingPriorResponse() throws Exceptio
2245
2248
.assertBody ("Success!" );
2246
2249
}
2247
2250
2251
+ @ Tag ("Slow" )
2248
2252
@ Test public void doesNotFollow21Redirects () throws Exception {
2249
2253
for (int i = 0 ; i < 21 ; i ++) {
2250
2254
server .enqueue (new MockResponse ()
@@ -2261,6 +2265,7 @@ public void interceptorCallsProceedWithoutClosingPriorResponse() throws Exceptio
2261
2265
}
2262
2266
}
2263
2267
2268
+ @ Tag ("Slow" )
2264
2269
@ Test public void doesNotFollow21Redirects_Async () throws Exception {
2265
2270
for (int i = 0 ; i < 21 ; i ++) {
2266
2271
server .enqueue (new MockResponse ()
@@ -2323,10 +2328,12 @@ private String stringFill(char fillChar, int length) {
2323
2328
assertThat (server .getRequestCount ()).isEqualTo (0 );
2324
2329
}
2325
2330
2331
+ @ Tag ("Slowish" )
2326
2332
@ Test public void cancelDuringHttpConnect () throws Exception {
2327
2333
cancelDuringConnect ("http" );
2328
2334
}
2329
2335
2336
+ @ Tag ("Slowish" )
2330
2337
@ Test public void cancelDuringHttpsConnect () throws Exception {
2331
2338
cancelDuringConnect ("https" );
2332
2339
}
@@ -2768,6 +2775,7 @@ public void cancelWhileRequestHeadersAreSent_HTTP_2() throws Exception {
2768
2775
expect100ContinueEmptyRequestBody ();
2769
2776
}
2770
2777
2778
+ @ Tag ("Slowish" )
2771
2779
@ Test public void expect100ContinueTimesOutWithoutContinue () throws Exception {
2772
2780
server .enqueue (new MockResponse ()
2773
2781
.setSocketPolicy (SocketPolicy .NO_RESPONSE ));
@@ -2793,6 +2801,7 @@ public void cancelWhileRequestHeadersAreSent_HTTP_2() throws Exception {
2793
2801
assertThat (recordedRequest .getBody ().readUtf8 ()).isEqualTo ("" );
2794
2802
}
2795
2803
2804
+ @ Tag ("Slowish" )
2796
2805
@ Test public void expect100ContinueTimesOutWithoutContinue_HTTP2 () throws Exception {
2797
2806
enableProtocol (Protocol .HTTP_2 );
2798
2807
expect100ContinueTimesOutWithoutContinue ();
@@ -2820,6 +2829,7 @@ public void cancelWhileRequestHeadersAreSent_HTTP_2() throws Exception {
2820
2829
serverRespondsWithUnsolicited100Continue ();
2821
2830
}
2822
2831
2832
+ @ Tag ("Slow" )
2823
2833
@ Test public void serverRespondsWith100ContinueOnly () throws Exception {
2824
2834
client = client .newBuilder ()
2825
2835
.readTimeout (Duration .ofSeconds (1 ))
@@ -2844,6 +2854,7 @@ public void cancelWhileRequestHeadersAreSent_HTTP_2() throws Exception {
2844
2854
assertThat (recordedRequest .getBody ().readUtf8 ()).isEqualTo ("abc" );
2845
2855
}
2846
2856
2857
+ @ Tag ("Slow" )
2847
2858
@ Test public void serverRespondsWith100ContinueOnly_HTTP2 () throws Exception {
2848
2859
enableProtocol (Protocol .HTTP_2 );
2849
2860
serverRespondsWith100ContinueOnly ();
@@ -2867,11 +2878,13 @@ public void cancelWhileRequestHeadersAreSent_HTTP_2() throws Exception {
2867
2878
assertThat (server .takeRequest ().getSequenceNumber ()).isEqualTo (1 );
2868
2879
}
2869
2880
2881
+ @ Tag ("Slow" )
2870
2882
@ Test public void successfulExpectContinuePermitsConnectionReuseWithHttp2 () throws Exception {
2871
2883
enableProtocol (Protocol .HTTP_2 );
2872
2884
successfulExpectContinuePermitsConnectionReuse ();
2873
2885
}
2874
2886
2887
+ @ Tag ("Slow" )
2875
2888
@ Test public void unsuccessfulExpectContinuePreventsConnectionReuse () throws Exception {
2876
2889
server .enqueue (new MockResponse ());
2877
2890
server .enqueue (new MockResponse ());
@@ -3604,6 +3617,7 @@ private RequestBody requestBody(final boolean chunked, final long size, final in
3604
3617
+ " Did you forget to close a response body?" );
3605
3618
}
3606
3619
3620
+ @ Tag ("Slowish" )
3607
3621
@ Test public void asyncLeakedResponseBodyLogsStackTrace () throws Exception {
3608
3622
server .enqueue (new MockResponse ()
3609
3623
.setBody ("This gets leaked." ));
0 commit comments