@@ -51,6 +51,7 @@ public class LazyIterator_Test {
5151 private static final String TEST_ENV_NAME = "lazy_iterator_test" ;
5252 private static TempStorageIds envStorageIds ;
5353 private static UUID envDataPolicyId ;
54+ private static final int retries = 5 ;
5455
5556 @ BeforeClass
5657 public static void startup () throws IOException , SignatureException {
@@ -77,7 +78,7 @@ public void emptyTest() throws IOException, SignatureException {
7778 final int maxKeys = 100 ;
7879
7980
80- final LazyObjectIterable iterable = new LazyObjectIterable (CLIENT , TEST_ENV_NAME , prefix , nextMarker , maxKeys );
81+ final LazyObjectIterable iterable = new LazyObjectIterable (CLIENT , TEST_ENV_NAME , prefix , nextMarker , maxKeys , retries );
8182 final Iterator <Contents > iterator = iterable .iterator ();
8283
8384 assertFalse (iterator .hasNext ());
@@ -96,7 +97,7 @@ public void singlePageTest() throws IOException, XmlProcessingException, Signatu
9697 final String nextMarker = null ;
9798 final int maxKeys = 100 ;
9899
99- final LazyObjectIterable iterable = new LazyObjectIterable (CLIENT , TEST_ENV_NAME , prefix , nextMarker , maxKeys );
100+ final LazyObjectIterable iterable = new LazyObjectIterable (CLIENT , TEST_ENV_NAME , prefix , nextMarker , maxKeys , retries );
100101 final Iterator <Contents > iterator = iterable .iterator ();
101102
102103 assertTrue (iterator .hasNext ());
@@ -122,7 +123,7 @@ public void multiPageTest() throws IOException, URISyntaxException, XmlProcessin
122123 final String nextMarker = null ;
123124 final int maxKeys = 2 ;
124125
125- final LazyObjectIterable iterable = new LazyObjectIterable (CLIENT , TEST_ENV_NAME , prefix , nextMarker , maxKeys );
126+ final LazyObjectIterable iterable = new LazyObjectIterable (CLIENT , TEST_ENV_NAME , prefix , nextMarker , maxKeys , retries );
126127 final Iterator <Contents > iterator = iterable .iterator ();
127128
128129 assertTrue (iterator .hasNext ());
0 commit comments