File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
iam/api-client/src/test/java/iam/snippets Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 1919import static org .hamcrest .core .StringContains .containsString ;
2020import static org .junit .Assert .assertNotNull ;
2121
22+ import com .google .cloud .testing .junit4 .MultipleAttemptsRule ;
2223import java .io .ByteArrayOutputStream ;
2324import java .io .PrintStream ;
2425import java .util .UUID ;
2526import org .junit .After ;
2627import org .junit .Before ;
2728import org .junit .BeforeClass ;
2829import org .junit .FixMethodOrder ;
30+ import org .junit .Rule ;
2931import org .junit .Test ;
3032import org .junit .runner .RunWith ;
3133import org .junit .runners .JUnit4 ;
@@ -42,6 +44,8 @@ public class ServiceAccountTests {
4244 private ByteArrayOutputStream bout ;
4345 private final PrintStream originalOut = System .out ;
4446
47+ @ Rule MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule (3 );
48+
4549 private static void requireEnvVar (String varName ) {
4650 assertNotNull (
4751 System .getenv (varName ),
You can’t perform that action at this time.
0 commit comments