File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
compute/cloud-client/src/test/java/compute Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 2222import com .google .api .gax .rpc .InvalidArgumentException ;
2323import com .google .api .gax .rpc .NotFoundException ;
2424import com .google .cloud .compute .v1 .FirewallsClient ;
25+ import com .google .cloud .testing .junit4 .MultipleAttemptsRule ;
2526import java .io .ByteArrayOutputStream ;
2627import java .io .IOException ;
2728import java .io .PrintStream ;
3031import java .util .concurrent .TimeUnit ;
3132import java .util .concurrent .TimeoutException ;
3233import org .junit .Assert ;
34+ import org .junit .Rule ;
3335import org .junit .jupiter .api .AfterAll ;
3436import org .junit .jupiter .api .AfterEach ;
3537import org .junit .jupiter .api .BeforeAll ;
4244@ RunWith (JUnit4 .class )
4345@ Timeout (value = 10 , unit = TimeUnit .MINUTES )
4446public class FirewallIT {
47+ @ Rule public final MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule (3 );
4548
4649 private static final String PROJECT_ID = System .getenv ("GOOGLE_CLOUD_PROJECT" );
4750 private static String FIREWALL_RULE_CREATE ;
Original file line number Diff line number Diff line change 3030import com .google .cloud .storage .BucketInfo ;
3131import com .google .cloud .storage .Storage ;
3232import com .google .cloud .storage .StorageOptions ;
33+ import com .google .cloud .testing .junit4 .MultipleAttemptsRule ;
3334import java .io .ByteArrayOutputStream ;
3435import java .io .IOException ;
3536import java .io .PrintStream ;
3839import java .util .concurrent .TimeUnit ;
3940import java .util .concurrent .TimeoutException ;
4041import org .junit .Assert ;
42+ import org .junit .Rule ;
4143import org .junit .jupiter .api .AfterAll ;
4244import org .junit .jupiter .api .AfterEach ;
4345import org .junit .jupiter .api .BeforeAll ;
5052@ RunWith (JUnit4 .class )
5153@ Timeout (value = 10 , unit = TimeUnit .MINUTES )
5254public class SnippetsIT {
55+ @ Rule public final MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule (3 );
5356
5457 private static final String PROJECT_ID = System .getenv ("GOOGLE_CLOUD_PROJECT" );
5558 private static String ZONE ;
You can’t perform that action at this time.
0 commit comments