File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/test/java/org/zendesk/client/v2 Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -262,6 +262,7 @@ public void createSolveTickets() throws Exception {
262
262
createClientWithTokenOrPassword ();
263
263
assumeThat ("Must have a requester email" , config .getProperty ("requester.email" ), notNullValue ());
264
264
Ticket ticket ;
265
+ long firstId = Long .MAX_VALUE ;
265
266
do {
266
267
Ticket t = new Ticket (
267
268
new Ticket .Requester (config .getProperty ("requester.name" ), config .getProperty ("requester.email" )),
@@ -280,7 +281,8 @@ public void createSolveTickets() throws Exception {
280
281
assertThat (ticket .getRequesterId (), notNullValue ());
281
282
assertThat (ticket .getDescription (), is (t .getComment ().getBody ()));
282
283
assertThat (instance .getTicket (ticket .getId ()), notNullValue ());
283
- } while (ticket .getId () < 200L ); // seed enough data for the paging tests
284
+ firstId = Math .min (ticket .getId (), firstId );
285
+ } while (ticket .getId () < firstId + 200L ); // seed enough data for the paging tests
284
286
}
285
287
286
288
@ Test
You can’t perform that action at this time.
0 commit comments