File tree 1 file changed +13
-5
lines changed
jetty-client/src/test/java/org/eclipse/jetty/client/http
1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -230,14 +230,20 @@ protected HttpReceiverOverHTTP newHttpReceiver()
230
230
{
231
231
return new HttpReceiverOverHTTP (this )
232
232
{
233
+ private boolean once = true ;
234
+
233
235
@ Override
234
236
protected void fillInterested ()
235
237
{
236
- // Verify that the buffer has been released
237
- // before fillInterested() is called.
238
- assertNull (getResponseBuffer ());
239
- // Fill the endpoint so receive is called again.
240
- endPoint .addInput ("X" );
238
+ if (once )
239
+ {
240
+ once = false ;
241
+ // Verify that the buffer has been released
242
+ // before fillInterested() is called.
243
+ assertNull (getResponseBuffer ());
244
+ // Fill the endpoint so receive is called again.
245
+ endPoint .addInput ("X" );
246
+ }
241
247
super .fillInterested ();
242
248
}
243
249
};
@@ -260,5 +266,7 @@ protected void fillInterested()
260
266
Response response = listener .get (5 , TimeUnit .SECONDS );
261
267
assertNotNull (response );
262
268
assertEquals (200 , response .getStatus ());
269
+
270
+ Thread .sleep (2000 );
263
271
}
264
272
}
You can’t perform that action at this time.
0 commit comments